Page MenuHomePhabricator

D11791.diff
No OneTemporary

D11791.diff

diff --git a/src/applications/people/conduit/UserConduitAPIMethod.php b/src/applications/people/conduit/UserConduitAPIMethod.php
--- a/src/applications/people/conduit/UserConduitAPIMethod.php
+++ b/src/applications/people/conduit/UserConduitAPIMethod.php
@@ -23,8 +23,10 @@
$primary = $user->loadPrimaryEmail();
if ($primary && $primary->getIsVerified()) {
+ $email = $primary->getAddress();
$roles[] = 'verified';
} else {
+ $email = null;
$roles[] = 'unverified';
}
@@ -37,12 +39,13 @@
}
$return = array(
- 'phid' => $user->getPHID(),
- 'userName' => $user->getUserName(),
- 'realName' => $user->getRealName(),
- 'image' => $user->getProfileImageURI(),
- 'uri' => PhabricatorEnv::getURI('/p/'.$user->getUsername().'/'),
- 'roles' => $roles,
+ 'phid' => $user->getPHID(),
+ 'userName' => $user->getUserName(),
+ 'realName' => $user->getRealName(),
+ 'primaryEmail' => $email,
+ 'image' => $user->getProfileImageURI(),
+ 'uri' => PhabricatorEnv::getURI('/p/'.$user->getUsername().'/'),
+ 'roles' => $roles,
);
if ($current_status) {

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 10, 10:17 AM (2 d, 16 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6735849
Default Alt Text
D11791.diff (1 KB)

Event Timeline