Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/provider/PhabricatorAuthProvider.php
Context not available. | |||||
public function getAuthCSRFCode(AphrontRequest $request) { | public function getAuthCSRFCode(AphrontRequest $request) { | ||||
$phcid = $request->getCookie(PhabricatorCookies::COOKIE_CLIENTID); | $phcid = $request->getCookie(PhabricatorCookies::COOKIE_CLIENTID); | ||||
if (!strlen($phcid)) { | if (!@strlen($phcid)) { | ||||
throw new AphrontMalformedRequestException( | throw new AphrontMalformedRequestException( | ||||
pht('Missing Client ID Cookie'), | pht('Missing Client ID Cookie'), | ||||
pht( | pht( | ||||
Context not available. | |||||
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( | ||||
'The authentication provider did not return a client state '. | 'The authentication provider did not return a client state '. | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0