From 33f1532079a11ee550235c450f833b5d8bdf934e Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 12 Aug 2016 12:33:31 +0200 Subject: [PATCH] Throw exception if you don't handle it --- core/Middleware/TwoFactorMiddleware.php | 2 ++ 1 file changed, 2 insertions(+) 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; } } -- 2.39.5