summaryrefslogtreecommitdiffstats
path: root/core/Middleware
diff options
context:
space:
mode:
Diffstat (limited to 'core/Middleware')
-rw-r--r--core/Middleware/TwoFactorMiddleware.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Middleware/TwoFactorMiddleware.php b/core/Middleware/TwoFactorMiddleware.php
index c87058d11fa..9b930edd57d 100644
--- a/core/Middleware/TwoFactorMiddleware.php
+++ b/core/Middleware/TwoFactorMiddleware.php
@@ -129,6 +129,8 @@ class TwoFactorMiddleware extends Middleware {
if ($exception instanceof UserAlreadyLoggedInException) {
return new RedirectResponse($this->urlGenerator->linkToRoute('files.view.index'));
}
+
+ throw $exception;
}
}