diff --git a/security/form_login_setup.rst b/security/form_login_setup.rst index c52847f0dcc..2213e949fe8 100644 --- a/security/form_login_setup.rst +++ b/security/form_login_setup.rst @@ -74,10 +74,15 @@ class that processes the login submit and 4) updates the main security config fi // last username entered by the user $lastUsername = $authenticationUtils->getLastUsername(); - return $this->render('security/login.html.twig', [ - 'last_username' => $lastUsername, - 'error' => $error - ]); + return $this->render('security/login.html.twig', ['last_username' => $lastUsername, 'error' => $error]); + } + + /** + * @Route("/logout", name="app_logout") + */ + public function logout() + { + throw new \Exception('This method can be blank - it will be intercepted by the logout key on your firewall'); } /** @@ -165,10 +170,10 @@ a traditional HTML form that submits to ``/login``: {% endif %}

Please sign in

- - - - + + + +