Differential D20112 Diff 48128 src/applications/auth/controller/PhabricatorAuthRegisterController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/controller/PhabricatorAuthRegisterController.php
Show First 20 Lines • Show All 665 Lines • ▼ Show 20 Lines | if (!$providers) { | ||||
return array($account, $provider, $response); | return array($account, $provider, $response); | ||||
} else if (count($providers) > 1) { | } else if (count($providers) > 1) { | ||||
$response = $this->renderError( | $response = $this->renderError( | ||||
pht('There are too many configured default registration providers.')); | pht('There are too many configured default registration providers.')); | ||||
return array($account, $provider, $response); | return array($account, $provider, $response); | ||||
} | } | ||||
$provider = head($providers); | $provider = head($providers); | ||||
$account = $provider->getDefaultExternalAccount(); | $account = $provider->newDefaultExternalAccount(); | ||||
return array($account, $provider, $response); | return array($account, $provider, $response); | ||||
} | } | ||||
private function loadProfilePicture(PhabricatorExternalAccount $account) { | private function loadProfilePicture(PhabricatorExternalAccount $account) { | ||||
$phid = $account->getProfileImagePHID(); | $phid = $account->getProfileImagePHID(); | ||||
if (!$phid) { | if (!$phid) { | ||||
return null; | return null; | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |