[Security] Fix SwitchUser is broken when the User Provider always returns a valid user

This commit is contained in:
Tugdual Saunier 2019-11-23 15:44:33 +01:00
parent 2743e259c6
commit 2bf6cd2eea
No known key found for this signature in database
GPG Key ID: 404D33416977EB39

View File

@ -153,7 +153,6 @@ class SwitchUserListener implements ListenerInterface
try {
$this->provider->loadUserByUsername($nonExistentUsername);
throw new \LogicException('AuthenticationException expected');
} catch (AuthenticationException $e) {
}
} catch (AuthenticationException $e) {