Skip to content

Commit

Permalink
[Security][Http][SwitchUserListener] Ignore all non existent username…
Browse files Browse the repository at this point in the history
… protection errors
  • Loading branch information
fancyweb committed Apr 1, 2020
1 parent be0515f commit 42311d5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -168,7 +168,7 @@ private function attemptSwitchUser(Request $request, string $username): ?TokenIn

try {
$this->provider->loadUserByUsername($nonExistentUsername);
} catch (AuthenticationException $e) {
} catch (\Exception $e) {
}
} catch (AuthenticationException $e) {
$this->provider->loadUserByUsername($currentUsername);
Expand Down

0 comments on commit 42311d5

Please sign in to comment.