Page MenuHomePhabricator

D17785.id42762.diff
No OneTemporary

D17785.id42762.diff

diff --git a/src/applications/people/editor/PhabricatorUserEditor.php b/src/applications/people/editor/PhabricatorUserEditor.php
--- a/src/applications/people/editor/PhabricatorUserEditor.php
+++ b/src/applications/people/editor/PhabricatorUserEditor.php
@@ -540,6 +540,14 @@
$email->setIsPrimary(1);
$email->save();
+ // If the user doesn't have the verified flag set on their account
+ // yet, set it. We've made sure the email is verified above. See
+ // T12635 for discussion.
+ if (!$user->getIsEmailVerified()) {
+ $user->setIsEmailVerified(1);
+ $user->save();
+ }
+
$log = PhabricatorUserLog::initializeNewLog(
$actor,
$user->getPHID(),

File Metadata

Mime Type
text/plain
Expires
Fri, Mar 28, 11:48 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7706286
Default Alt Text
D17785.id42762.diff (750 B)

Event Timeline