From 06c6f0a659a5b457475e98463d9ef239cca16d8d Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Tue, 11 Jul 2023 17:06:48 +0200 Subject: [PATCH] Add login route to UserController - Added a new route '/{_locale}/login' to the UserController class. - This route allows users to access the login page. - The loginAction method now handles requests for this new route. --- src/Controller/UserController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index 2fc64dc..8edbff3 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -18,6 +18,7 @@ class UserController extends AbstractController { #[Route('/', name: 'default')] + #[Route('/{_locale}/login', name: 'login')] public function loginAction(Request $request, AuthenticationUtils $authenticationUtils): Response { if($this->isGranted('IS_AUTHENTICATED_REMEMBERED')) {