This commit is contained in:
2018-07-09 06:33:27 +02:00
parent fd296e2d8f
commit 1ab7b7a3c4
2 changed files with 3 additions and 6 deletions
@@ -31,7 +31,6 @@ class SocialNorm
{
$state = $this->stateGenerator->generate();
// this is for some reason needed, plain put doesn't work across the redirect
\Session::put('oauth.state', $state);
\Session::save();
@@ -52,7 +51,7 @@ class SocialNorm
protected function verifyState()
{
if (\Session::get('oauth.state') !== $this->request->state()) {
throw new InvalidAuthorizationCodeException;
throw new InvalidAuthorizationCodeException("State failed to verify");
}
}
}