Update controllers

This commit is contained in:
2024-11-29 21:46:33 -05:00
parent 9a0b4db460
commit eac41ac9fc
4 changed files with 223 additions and 33 deletions

View File

@@ -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');
}