Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/provider/PhabricatorPasswordAuthProvider.php
Show First 20 Lines • Show All 353 Lines • ▼ Show 20 Lines | public function processLoginRequest( | ||||
return array($account, $response); | return array($account, $response); | ||||
} | } | ||||
public function shouldRequireRegistrationPassword() { | public function shouldRequireRegistrationPassword() { | ||||
return true; | return true; | ||||
} | } | ||||
public function getDefaultExternalAccount() { | |||||
$adapter = $this->getAdapter(); | |||||
return id(new PhabricatorExternalAccount()) | |||||
->setAccountType($adapter->getAdapterType()) | |||||
->setAccountDomain($adapter->getAdapterDomain()); | |||||
} | |||||
protected function willSaveAccount(PhabricatorExternalAccount $account) { | protected function willSaveAccount(PhabricatorExternalAccount $account) { | ||||
parent::willSaveAccount($account); | parent::willSaveAccount($account); | ||||
$account->setUserPHID($account->getAccountID()); | $account->setUserPHID($account->getAccountID()); | ||||
} | } | ||||
public function willRegisterAccount(PhabricatorExternalAccount $account) { | public function willRegisterAccount(PhabricatorExternalAccount $account) { | ||||
parent::willRegisterAccount($account); | parent::willRegisterAccount($account); | ||||
$account->setAccountID($account->getUserPHID()); | $account->setAccountID($account->getUserPHID()); | ||||
Show All 29 Lines |