diff options
author | Ryan Weaver <ryan@thatsquality.com> | 2015-09-20 20:11:34 -0400 |
---|---|---|
committer | Ryan Weaver <ryan@thatsquality.com> | 2015-09-20 20:11:34 -0400 |
commit | 1aa1d1b25ee51760e703df10ca383cd3a6e957e4 (patch) | |
tree | 6c70c9674aabd02bf7f61bcd68de6aca945670f5 /Guard/Firewall | |
parent | 9143527a73e82b6335761a1dda73eb2c2d240269 (diff) | |
download | symfony-security-1aa1d1b25ee51760e703df10ca383cd3a6e957e4.zip symfony-security-1aa1d1b25ee51760e703df10ca383cd3a6e957e4.tar.gz symfony-security-1aa1d1b25ee51760e703df10ca383cd3a6e957e4.tar.bz2 |
Fixing a bug where having an authentication failure would log you out.
This solution is a copy of what AbstractAuthenticationListener does. Scenario:
1) Login
2) Go back to the log in page
3) Put in a bad user/pass
You *should* still be logged in after a failed attempt. This commit gives that behavior.
Diffstat (limited to 'Guard/Firewall')
-rw-r--r-- | Guard/Firewall/GuardAuthenticationListener.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Guard/Firewall/GuardAuthenticationListener.php b/Guard/Firewall/GuardAuthenticationListener.php index 26d5852..6140be0 100644 --- a/Guard/Firewall/GuardAuthenticationListener.php +++ b/Guard/Firewall/GuardAuthenticationListener.php @@ -117,7 +117,7 @@ class GuardAuthenticationListener implements ListenerInterface $this->logger->info('Guard authentication failed.', array('exception' => $e, 'authenticator' => get_class($guardAuthenticator))); } - $response = $this->guardHandler->handleAuthenticationFailure($e, $request, $guardAuthenticator); + $response = $this->guardHandler->handleAuthenticationFailure($e, $request, $guardAuthenticator, $this->providerKey); if ($response instanceof Response) { $event->setResponse($response); |