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

Commit 8722f91

Browse files
committed
[Security] Fix SwitchUser is broken when the User Provider always returns a valid user
1 parent b85769a commit 8722f91

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Http/Firewall/SwitchUserListener.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ private function attemptSwitchUser(Request $request, $username)
153153

154154
try {
155155
$this->provider->loadUserByUsername($nonExistentUsername);
156-
throw new \LogicException('AuthenticationException expected');
157156
} catch (AuthenticationException $e) {
158157
}
159158
} catch (AuthenticationException $e) {

0 commit comments

Comments
 (0)