Skip to content

Commit

Permalink
[Security] Fix SwitchUser is broken when the User Provider always ret…
Browse files Browse the repository at this point in the history
…urns a valid user
  • Loading branch information
tucksaun committed Nov 23, 2019
1 parent 2743e25 commit 2bf6cd2
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ private function attemptSwitchUser(Request $request, $username)

try {
$this->provider->loadUserByUsername($nonExistentUsername);
throw new \LogicException('AuthenticationException expected');
} catch (AuthenticationException $e) {
}
} catch (AuthenticationException $e) {
Expand Down

0 comments on commit 2bf6cd2

Please sign in to comment.