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.
This commit is contained in:
Jeroen De Meerleer 2023-07-11 17:06:48 +02:00
parent 7b899a01ef
commit 06c6f0a659
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 1 additions and 0 deletions

View File

@ -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')) {