From 1ca8c758131a3d25b75fa3c598e80c70767703bd Mon Sep 17 00:00:00 2001 From: Einenlum Date: Thu, 3 Nov 2016 13:49:17 +0100 Subject: [PATCH] Fix context listener misbehaviour --- .../Component/Security/Http/Firewall/ContextListener.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Security/Http/Firewall/ContextListener.php b/src/Symfony/Component/Security/Http/Firewall/ContextListener.php index 4d6f3f81f1b49..04bc25970dcf4 100644 --- a/src/Symfony/Component/Security/Http/Firewall/ContextListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/ContextListener.php @@ -166,13 +166,13 @@ protected function refreshUser(TokenInterface $token) return $token; } catch (UnsupportedUserException $e) { - // let's try the next user provider + continue; } catch (UsernameNotFoundException $e) { if (null !== $this->logger) { $this->logger->warning('Username could not be found in the selected user provider.', array('username' => $e->getUsername(), 'provider' => get_class($provider))); } - return; + continue; } }