[Security][Http][SwitchUserListener] Ignore all non existent username protection errors

This commit is contained in:
Thomas Calvet 2020-04-01 11:15:47 +02:00
parent be0515ffb6
commit 42311d5c29

View File

@ -168,7 +168,7 @@ class SwitchUserListener extends AbstractListener implements ListenerInterface
try {
$this->provider->loadUserByUsername($nonExistentUsername);
} catch (AuthenticationException $e) {
} catch (\Exception $e) {
}
} catch (AuthenticationException $e) {
$this->provider->loadUserByUsername($currentUsername);