Throw exception if you don't handle it

This commit is contained in:
Roeland Jago Douma 2016-08-12 12:33:31 +02:00
parent 35358bdde0
commit 33f1532079
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 2 additions and 0 deletions

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;
}
}