Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ca680e1

Browse filesBrowse files
committed
[Security][Http][SwitchUserListener] Ignore all non existent username protection errors
1 parent 7f5d017 commit ca680e1
Copy full SHA for ca680e1

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.