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.
2 parents 18fe999 + 1fc0315 commit fa1ab24Copy full SHA for fa1ab24
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