Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F684319
20170424.user.01.verify.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
764 B
Referenced Files
None
Subscribers
None
20170424.user.01.verify.php
View Options
<?php
$table
=
new
PhabricatorUser
();
$conn
=
$table
->
establishConnection
(
'w'
);
foreach
(
new
LiskMigrationIterator
(
$table
)
as
$user
)
{
// Ignore users who are verified.
if
(
$user
->
getIsEmailVerified
())
{
continue
;
}
// Ignore unverified users with missing (rare) or unverified (common)
// primary emails: it's correct that their accounts are not verified.
$primary
=
$user
->
loadPrimaryEmail
();
if
(!
$primary
)
{
continue
;
}
if
(!
$primary
->
getIsVerified
())
{
continue
;
}
queryfx
(
$conn
,
'UPDATE %T SET isEmailVerified = 1 WHERE id = %d'
,
$table
->
getTableName
(),
$user
->
getID
());
echo
tsprintf
(
"%s
\n
"
,
pht
(
'Corrected account verification state for user "%s".'
,
$user
->
getUsername
()));
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 27, 12:12 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
172222
Default Alt Text
20170424.user.01.verify.php (764 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment