Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6174f43

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎book/security.rst

Copy file name to clipboardExpand all lines: book/security.rst
+1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.