diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2011-07-04 12:52:45 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2011-07-04 12:52:45 +0200 |
commit | cb2a2651689c5d45fe6e1d6e8d846cfa39e98bc6 (patch) | |
tree | c94c50b0723080041d9b6a1e4f86800bbbd43bd3 | |
parent | e4ca2c178f773c61a41ed080c9238fb2f71cc8a2 (diff) | |
download | symfony-security-cb2a2651689c5d45fe6e1d6e8d846cfa39e98bc6.zip symfony-security-cb2a2651689c5d45fe6e1d6e8d846cfa39e98bc6.tar.gz symfony-security-cb2a2651689c5d45fe6e1d6e8d846cfa39e98bc6.tar.bz2 |
[Security] reverted change from previous merge
-rw-r--r-- | Http/Firewall/BasicAuthenticationListener.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Http/Firewall/BasicAuthenticationListener.php b/Http/Firewall/BasicAuthenticationListener.php index ebe167e..9669853 100644 --- a/Http/Firewall/BasicAuthenticationListener.php +++ b/Http/Firewall/BasicAuthenticationListener.php @@ -31,6 +31,7 @@ class BasicAuthenticationListener implements ListenerInterface private $providerKey; private $authenticationEntryPoint; private $logger; + private $ignoreFailure; public function __construct(SecurityContextInterface $securityContext, AuthenticationManagerInterface $authenticationManager, $providerKey, AuthenticationEntryPointInterface $authenticationEntryPoint, LoggerInterface $logger = null) { @@ -43,6 +44,7 @@ class BasicAuthenticationListener implements ListenerInterface $this->providerKey = $providerKey; $this->authenticationEntryPoint = $authenticationEntryPoint; $this->logger = $logger; + $this->ignoreFailure = false; } /** @@ -78,6 +80,10 @@ class BasicAuthenticationListener implements ListenerInterface $this->logger->info(sprintf('Authentication request failed for user "%s": %s', $username, $failed->getMessage())); } + if ($this->ignoreFailure) { + return; + } + $event->setResponse($this->authenticationEntryPoint->start($request, $failed)); } } |