Skip to content

Commit

Permalink
[symfony#1975] Reverting one change - this isn't much longer at all, …
Browse files Browse the repository at this point in the history
…and since this code is copied-and-pasted, this is much cleaner I think
  • Loading branch information
weaverryan committed Nov 26, 2012
1 parent e1a2b67 commit 114ce6d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions book/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,7 @@ Next, create the controller that will display the login form::
$session = $request->getSession();

// get the login error if there is one
if (
$request->attributes->has(SecurityContext::AUTHENTICATION_ERROR)
) {
if ($request->attributes->has(SecurityContext::AUTHENTICATION_ERROR)) {
$error = $request->attributes->get(
SecurityContext::AUTHENTICATION_ERROR
);
Expand Down

0 comments on commit 114ce6d

Please sign in to comment.