Merge pull request #844 from nextcloud/twofactor_mw_excep

TwoFactorMiddleware should forward Exception
This commit is contained in:
Lukas Reschke 2016-08-12 20:15:32 +02:00 committed by GitHub
commit 11e089f112

View file

@ -129,6 +129,8 @@ class TwoFactorMiddleware extends Middleware {
if ($exception instanceof UserAlreadyLoggedInException) {
return new RedirectResponse($this->urlGenerator->linkToRoute('files.view.index'));
}
throw $exception;
}
}