Skip to content

Commit

Permalink
Merge pull request #40 from GoteoFoundation/fix/logout-locale-collision
Browse files Browse the repository at this point in the history
[fix] logout locale route collision
  • Loading branch information
davidbeig authored Oct 14, 2024
2 parents 144d0e9 + 57dc45d commit 982ce58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/SecurityController.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function login(AuthenticationUtils $authenticationUtils): Response
return $this->render('security/login.html.twig', ['last_username' => $lastUsername, 'error' => $error]);
}

#[Route('/logout', name: 'app_logout')]
#[Route('/{_locale}/logout', name: 'app_logout')]
public function logout(): void
{
throw new LogicException('This method can be blank - it will be intercepted by the logout key on your firewall.');
Expand Down

0 comments on commit 982ce58

Please sign in to comment.