From 71fd28a17091aa335ff45effa05eef19b919d6d1 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Wed, 8 Jun 2022 10:19:34 +0200 Subject: [PATCH] BUGFIX: when loggin in automagically you still needed to login --- src/Controller/SecurityController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index 4f117c4..2883c4e 100644 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -13,7 +13,7 @@ class SecurityController extends AbstractController { public function loginAction(Request $request, AuthenticationUtils $authenticationUtils): Response { - if($this->isGranted('IS_AUTHENTICATED_FULLY')) { + if($this->isGranted('IS_AUTHENTICATED_REMEMBERED')) { return new RedirectResponse($this->generateUrl('job_index')); } // get the login error if there is one @@ -35,7 +35,7 @@ class SecurityController extends AbstractController throw new \Exception('Don\'t forget to activate logout in security.yaml'); } - public function loginCheckAction(): Response + public function loginCheckAction(): void { }