Skip to content

Commit 2bf6cd2

Browse files
committed
[Security] Fix SwitchUser is broken when the User Provider always returns a valid user
1 parent 2743e25 commit 2bf6cd2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Symfony/Component/Security/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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy