mirror of
https://github.com/flarum/core.git
synced 2025-07-20 16:21:18 +02:00
Fix oauth controller wrong session method call (#1226)
This commit is contained in:
@@ -66,7 +66,7 @@ abstract class AbstractOAuth2Controller implements ControllerInterface
|
|||||||
|
|
||||||
return new RedirectResponse($authUrl.'&display=popup');
|
return new RedirectResponse($authUrl.'&display=popup');
|
||||||
} elseif (! $state || $state !== $session->get('oauth2state')) {
|
} elseif (! $state || $state !== $session->get('oauth2state')) {
|
||||||
$session->forget('oauth2state');
|
$session->remove('oauth2state');
|
||||||
echo 'Invalid state. Please close the window and try again.';
|
echo 'Invalid state. Please close the window and try again.';
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user