8000 Remove authentication errors from session after getting them · symfony/symfony-docs@6174f43 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6174f43

Browse files
frosasweaverryan
authored andcommitted
Remove authentication errors from session after getting them
1 parent 5fbd798 commit 6174f43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

book/security.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ Next, create the controller that will display the login form:
414414
$error = $request->attributes->get(SecurityContext::AUTHENTICATION_ERROR);
415415
} else {
416416
$error = $session->get(SecurityContext::AUTHENTICATION_ERROR);
417+
$session->remove(SecurityContext::AUTHENTICATION_ERROR);
417418
}
418419
419420
return $this->render('AcmeSecurityBundle:Security:login.html.twig', array(

0 commit comments

Comments
 (0)
0