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:
parent
7b899a01ef
commit
06c6f0a659
|
@ -18,6 +18,7 @@ class UserController extends AbstractController
|
||||||
{
|
{
|
||||||
|
|
||||||
#[Route('/', name: 'default')]
|
#[Route('/', name: 'default')]
|
||||||
|
#[Route('/{_locale}/login', name: 'login')]
|
||||||
public function loginAction(Request $request, AuthenticationUtils $authenticationUtils): Response
|
public function loginAction(Request $request, AuthenticationUtils $authenticationUtils): Response
|
||||||
{
|
{
|
||||||
if($this->isGranted('IS_AUTHENTICATED_REMEMBERED')) {
|
if($this->isGranted('IS_AUTHENTICATED_REMEMBERED')) {
|
||||||
|
|
Loading…
Reference in New Issue