Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/controller/PhabricatorAuthController.php
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | protected function clearRegistrationCookies() { | ||||
$request->clearCookie(PhabricatorCookies::COOKIE_CLIENTID); | $request->clearCookie(PhabricatorCookies::COOKIE_CLIENTID); | ||||
// Clear the invite cookie. | // Clear the invite cookie. | ||||
$request->clearCookie(PhabricatorCookies::COOKIE_INVITE); | $request->clearCookie(PhabricatorCookies::COOKIE_INVITE); | ||||
} | } | ||||
private function buildLoginValidateResponse(PhabricatorUser $user) { | private function buildLoginValidateResponse(PhabricatorUser $user) { | ||||
$validate_uri = new PhutilURI($this->getApplicationURI('validate/')); | $validate_uri = new PhutilURI($this->getApplicationURI('validate/')); | ||||
$validate_uri->setQueryParam('expect', $user->getUsername()); | $validate_uri->replaceQueryParam('expect', $user->getUsername()); | ||||
return id(new AphrontRedirectResponse())->setURI((string)$validate_uri); | return id(new AphrontRedirectResponse())->setURI((string)$validate_uri); | ||||
} | } | ||||
protected function renderError($message) { | protected function renderError($message) { | ||||
return $this->renderErrorPage( | return $this->renderErrorPage( | ||||
pht('Authentication Error'), | pht('Authentication Error'), | ||||
array( | array( | ||||
▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines |