Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97994061
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
Wed, Jan 8, 09:43
Size
449 B
Mime Type
text/x-php
Expires
Fri, Jan 10, 09:43 (2 d)
Engine
blob
Format
Raw Data
Handle
23448589
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