diff --git a/src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php b/src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php index 1227c116cc5c1..09a11650ebc89 100644 --- a/src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php @@ -21,6 +21,7 @@ use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; use Symfony\Component\Security\Core\Exception\AuthenticationException; +use Symfony\Component\Security\Core\Exception\AuthenticationServiceException; use Symfony\Component\Security\Core\Exception\SessionUnavailableException; use Symfony\Component\Security\Core\Security; use Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface; @@ -183,7 +184,11 @@ abstract protected function attemptAuthentication(Request $request); private function onFailure(Request $request, AuthenticationException $failed) { if (null !== $this->logger) { - $this->logger->info('Authentication request failed.', array('exception' => $failed)); + if ($failed instanceof AuthenticationServiceException) { + $this->logger->error('Authentication request failed.', array('exception' => $failed)); + } else { + $this->logger->info('Authentication request failed.', array('exception' => $failed)); + } } $token = $this->tokenStorage->getToken();
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: