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 { }