Fix oauth controller wrong session method call (#1226)

This commit is contained in:
epoxa 2017-08-19 12:13:21 +07:00 committed by Toby Zerner
parent 3517d4e86c
commit 2b8b63cb01

View File

@ -66,7 +66,7 @@ abstract class AbstractOAuth2Controller implements ControllerInterface
return new RedirectResponse($authUrl.'&display=popup');
} elseif (! $state || $state !== $session->get('oauth2state')) {
$session->forget('oauth2state');
$session->remove('oauth2state');
echo 'Invalid state. Please close the window and try again.';
exit;
}