X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/userbundle/blobdiff_plain/522c2cc48f7a6188b14c125b04371d20b672ada8..700564e164ba70f49427b6fc7d21b8d0de0cff5d:/Handler/AuthenticationSuccessHandler.php diff --git a/Handler/AuthenticationSuccessHandler.php b/Handler/AuthenticationSuccessHandler.php index c57c68a..e67158e 100644 --- a/Handler/AuthenticationSuccessHandler.php +++ b/Handler/AuthenticationSuccessHandler.php @@ -62,7 +62,7 @@ class AuthenticationSuccessHandler extends DefaultAuthenticationSuccessHandler { */ public function onAuthenticationSuccess(Request $request, TokenInterface $token): Response { //Set login route - $login = $request->get('_route'); + $login = $request->attributes->get('_route'); //With login path option if (!empty($loginPath = $this->options['login_path'])) {