Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/provider/PhabricatorAuthProvider.php
Show First 20 Lines • Show All 468 Lines • ▼ Show 20 Lines | if (!strlen($phcid)) { | ||||
pht( | pht( | ||||
'Your browser did not submit a "%s" cookie with client state '. | 'Your browser did not submit a "%s" cookie with client state '. | ||||
'information in the request. Check that cookies are enabled. '. | 'information in the request. Check that cookies are enabled. '. | ||||
'If this problem persists, you may need to clear your cookies.', | 'If this problem persists, you may need to clear your cookies.', | ||||
PhabricatorCookies::COOKIE_CLIENTID), | PhabricatorCookies::COOKIE_CLIENTID), | ||||
true); | true); | ||||
} | } | ||||
return PhabricatorHash::digest($phcid); | return PhabricatorHash::weakDigest($phcid); | ||||
} | } | ||||
protected function verifyAuthCSRFCode(AphrontRequest $request, $actual) { | protected function verifyAuthCSRFCode(AphrontRequest $request, $actual) { | ||||
$expect = $this->getAuthCSRFCode($request); | $expect = $this->getAuthCSRFCode($request); | ||||
if (!strlen($actual)) { | if (!strlen($actual)) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
Show All 23 Lines |