Differential D10585 Diff 25583 src/applications/auth/controller/PhabricatorAuthValidateController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/controller/PhabricatorAuthValidateController.php
Show All 16 Lines | public function processRequest() { | ||||
$failures = array(); | $failures = array(); | ||||
if (!strlen($request->getStr('expect'))) { | if (!strlen($request->getStr('expect'))) { | ||||
return $this->renderErrors( | return $this->renderErrors( | ||||
array( | array( | ||||
pht( | pht( | ||||
'Login validation is missing expected parameter ("%s").', | 'Login validation is missing expected parameter ("%s").', | ||||
'phusr'))); | 'phusr'), | ||||
)); | |||||
} | } | ||||
$expect_phusr = $request->getStr('expect'); | $expect_phusr = $request->getStr('expect'); | ||||
$actual_phusr = $request->getCookie(PhabricatorCookies::COOKIE_USERNAME); | $actual_phusr = $request->getCookie(PhabricatorCookies::COOKIE_USERNAME); | ||||
if ($actual_phusr != $expect_phusr) { | if ($actual_phusr != $expect_phusr) { | ||||
if ($actual_phusr) { | if ($actual_phusr) { | ||||
$failures[] = pht( | $failures[] = pht( | ||||
"Attempted to set '%s' cookie to '%s', but your browser sent back ". | "Attempted to set '%s' cookie to '%s', but your browser sent back ". | ||||
Show All 38 Lines |