8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18fe999 commit 1fc0315Copy full SHA for 1fc0315
src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php
@@ -116,9 +116,9 @@ private function attemptSwitchUser(Request $request)
116
if (false !== $originalToken) {
117
if ($token->getUsername() === $request->get($this->usernameParameter)) {
118
return $token;
119
- } else {
120
- throw new \LogicException(sprintf('You are already switched to "%s" user.', $token->getUsername()));
121
}
+
+ throw new \LogicException(sprintf('You are already switched to "%s" user.', $token->getUsername()));
122
123
124
if (false === $this->accessDecisionManager->decide($token, array($this->role))) {
0 commit comments