Update controllers
This commit is contained in:
		| @@ -12,6 +12,9 @@ class SecurityController extends AbstractController | ||||
|     #[Route(path: '/', name: 'app_login')] | ||||
|     public function login(AuthenticationUtils $authenticationUtils): Response | ||||
|     { | ||||
|         if ($this->isGranted('ROLE_ADMIN')) { | ||||
|             return $this->redirectToRoute('app_admin_dashboard'); | ||||
|         } | ||||
|         if ($this->isGranted('IS_AUTHENTICATED_FULLY')) { | ||||
|             return $this->redirectToRoute('app_dashboard'); | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user