Merge pull request #844 from nextcloud/twofactor_mw_excep
TwoFactorMiddleware should forward Exception
This commit is contained in:
commit
11e089f112
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue