Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/provider/PhabricatorOAuth2AuthProvider.php
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | if (!$identifiers) { | ||||
$response = $controller->buildProviderErrorResponse( | $response = $controller->buildProviderErrorResponse( | ||||
$this, | $this, | ||||
pht( | pht( | ||||
'The OAuth provider failed to retrieve an account ID.')); | 'The OAuth provider failed to retrieve an account ID.')); | ||||
return array($account, $response); | return array($account, $response); | ||||
} | } | ||||
return array($this->loadOrCreateAccount($identifiers), $response); | $account = $this->newExternalAccountForIdentifiers($identifiers); | ||||
return array($account, $response); | |||||
} | } | ||||
public function processEditForm( | public function processEditForm( | ||||
AphrontRequest $request, | AphrontRequest $request, | ||||
array $values) { | array $values) { | ||||
return $this->processOAuthEditForm( | return $this->processOAuthEditForm( | ||||
$request, | $request, | ||||
▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines |