Skip to content

Commit 4fb6913

Browse files
committed
[Security] Fix SwitchUser is broken when the User Provider always returns a valid user
1 parent 290b23a commit 4fb6913

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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)