[Security][Http][SwitchUserListener] Ignore all non existent username protection errors
This commit is contained in:
parent
be0515ffb6
commit
42311d5c29
@ -168,7 +168,7 @@ class SwitchUserListener extends AbstractListener implements ListenerInterface
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$this->provider->loadUserByUsername($nonExistentUsername);
|
$this->provider->loadUserByUsername($nonExistentUsername);
|
||||||
} catch (AuthenticationException $e) {
|
} catch (\Exception $e) {
|
||||||
}
|
}
|
||||||
} catch (AuthenticationException $e) {
|
} catch (AuthenticationException $e) {
|
||||||
$this->provider->loadUserByUsername($currentUsername);
|
$this->provider->loadUserByUsername($currentUsername);
|
||||||
|
Reference in New Issue
Block a user