Skip to content

Commit 3787386

Browse files
committed
[Security][Http][SwitchUserListener] Ignore all non existent username protection errors
1 parent b413064 commit 3787386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firewall/SwitchUserListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private function attemptSwitchUser(Request $request, string $username): ?TokenIn
168168

169169
try {
170170
$this->provider->loadUserByUsername($nonExistentUsername);
171-
} catch (AuthenticationException $e) {
171+
} catch (\Exception $e) {
172172
}
173173
} catch (AuthenticationException $e) {
174174
$this->provider->loadUserByUsername($currentUsername);

0 commit comments

Comments
 (0)