[Security] Fix SwitchUser is broken when the User Provider always returns a valid user
This commit is contained in:
parent
2743e259c6
commit
2bf6cd2eea
@ -153,7 +153,6 @@ class SwitchUserListener implements ListenerInterface
|
||||
|
||||
try {
|
||||
$this->provider->loadUserByUsername($nonExistentUsername);
|
||||
throw new \LogicException('AuthenticationException expected');
|
||||
} catch (AuthenticationException $e) {
|
||||
}
|
||||
} catch (AuthenticationException $e) {
|
||||
|
Reference in New Issue
Block a user