summaryrefslogtreecommitdiffstats
path: root/Http
diff options
context:
space:
mode:
authorAntoine Hérault <antoine.herault@gmail.com>2011-06-26 11:29:43 +0200
committerAntoine Hérault <antoine.herault@gmail.com>2011-06-26 11:29:43 +0200
commitdc96e742a66fca46140132797923ec67e87a7231 (patch)
tree771babba61d4bfc1a443bebcbff56966ce664a0e /Http
parent92cf9fb4c77be9b62b3d954d69fd26ec48c55165 (diff)
downloadsymfony-security-dc96e742a66fca46140132797923ec67e87a7231.zip
symfony-security-dc96e742a66fca46140132797923ec67e87a7231.tar.gz
symfony-security-dc96e742a66fca46140132797923ec67e87a7231.tar.bz2
[Security] Remove useless attribute in basic authentication listener & test it
Diffstat (limited to 'Http')
-rw-r--r--Http/Firewall/BasicAuthenticationListener.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/Http/Firewall/BasicAuthenticationListener.php b/Http/Firewall/BasicAuthenticationListener.php
index 9669853..ebe167e 100644
--- a/Http/Firewall/BasicAuthenticationListener.php
+++ b/Http/Firewall/BasicAuthenticationListener.php
@@ -31,7 +31,6 @@ 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)
{
@@ -44,7 +43,6 @@ class BasicAuthenticationListener implements ListenerInterface
$this->providerKey = $providerKey;
$this->authenticationEntryPoint = $authenticationEntryPoint;
$this->logger = $logger;
- $this->ignoreFailure = false;
}
/**
@@ -80,10 +78,6 @@ 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));
}
}