Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92733691
20140410.accountsecret.2.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 23, 06:20
Size
449 B
Mime Type
text/x-php
Expires
Mon, Nov 25, 06:20 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
22479233
Attached To
rPH Phabricator
20140410.accountsecret.2.php
View Options
<?php
echo
pht
(
'Updating users...'
).
"
\n
"
;
foreach
(
new
LiskMigrationIterator
(
new
PhabricatorUser
())
as
$user
)
{
$id
=
$user
->
getID
();
echo
pht
(
'Updating %d...'
,
$id
).
"
\n
"
;
if
(
strlen
(
$user
->
getAccountSecret
()))
{
continue
;
}
queryfx
(
$user
->
establishConnection
(
'w'
),
'UPDATE %T SET accountSecret = %s WHERE id = %d'
,
$user
->
getTableName
(),
Filesystem
::
readRandomCharacters
(
64
),
$id
);
}
echo
pht
(
'Done.'
).
"
\n
"
;
Event Timeline
Log In to Comment