Throw exception if you don't handle it
This commit is contained in:
parent
35358bdde0
commit
33f1532079
|
@ -129,6 +129,8 @@ class TwoFactorMiddleware extends Middleware {
|
|||
if ($exception instanceof UserAlreadyLoggedInException) {
|
||||
return new RedirectResponse($this->urlGenerator->linkToRoute('files.view.index'));
|
||||
}
|
||||
|
||||
throw $exception;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue