Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit c619714

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Http/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)