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 8b4e066 commit fc28caeCopy full SHA for fc28cae
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