hmm
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user