From 95fcc26fe82ce151bb2724d50b65f09c76646064 Mon Sep 17 00:00:00 2001 From: allavenavr Date: Fri, 20 Dec 2024 09:17:28 +0100 Subject: [PATCH] fix:security+firewall --- src/Controller/RegistrationController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/RegistrationController.php b/src/Controller/RegistrationController.php index 50e84c2..94a135e 100644 --- a/src/Controller/RegistrationController.php +++ b/src/Controller/RegistrationController.php @@ -37,7 +37,7 @@ class RegistrationController extends AbstractController // do anything else you need here, like send an email - return $security->login($user, 'form_login', 'intern'); + return $security->login($user, 'form_login', 'main'); } return $this->render('registration/register.html.twig', [ @@ -65,7 +65,7 @@ class RegistrationController extends AbstractController // do anything else you need here, like send an email - return $security->login($user, 'form_login', 'employee'); + return $security->login($user, 'form_login', 'main'); } return $this->render('registration/register.html.twig', [