summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2011-06-15 12:35:09 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2011-06-15 12:35:09 +0200
commit5245b38c2470a78b3c0b69d641572d81eb48a991 (patch)
treec387393d547502ba65c87fcb0905076ce5dc7d3e
parent7acdc3514d940bb616296e7a4551a04f26e072c1 (diff)
downloadsymfony-security-5245b38c2470a78b3c0b69d641572d81eb48a991.zip
symfony-security-5245b38c2470a78b3c0b69d641572d81eb48a991.tar.gz
symfony-security-5245b38c2470a78b3c0b69d641572d81eb48a991.tar.bz2
[Security] reverted some changes from previous merge
-rw-r--r--Core/Authentication/Provider/UserAuthenticationProvider.php2
-rw-r--r--Http/Firewall/AbstractAuthenticationListener.php5
2 files changed, 2 insertions, 5 deletions
diff --git a/Core/Authentication/Provider/UserAuthenticationProvider.php b/Core/Authentication/Provider/UserAuthenticationProvider.php
index 41ab65b..8183c62 100644
--- a/Core/Authentication/Provider/UserAuthenticationProvider.php
+++ b/Core/Authentication/Provider/UserAuthenticationProvider.php
@@ -80,7 +80,7 @@ abstract class UserAuthenticationProvider implements AuthenticationProviderInter
return $authenticatedToken;
} catch (UsernameNotFoundException $notFound) {
if ($this->hideUserNotFoundExceptions) {
- throw new BadCredentialsException(sprintf('Bad credentials for user "%s"', $username), 0, $notFound);
+ throw new BadCredentialsException('Bad credentials', 0, $notFound);
}
throw $notFound;
diff --git a/Http/Firewall/AbstractAuthenticationListener.php b/Http/Firewall/AbstractAuthenticationListener.php
index bf61057..fc8203a 100644
--- a/Http/Firewall/AbstractAuthenticationListener.php
+++ b/Http/Firewall/AbstractAuthenticationListener.php
@@ -221,10 +221,7 @@ abstract class AbstractAuthenticationListener implements ListenerInterface
private function onSuccess(GetResponseEvent $event, Request $request, TokenInterface $token)
{
if (null !== $this->logger) {
- $this->logger->info(sprintf(
- 'User "%s" has been authenticated successfully',
- $token->getUsername()
- ));
+ $this->logger->info(sprintf('User "%s" has been authenticated successfully', $token->getUsername()));
}
$this->securityContext->setToken($token);