diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-08-12 12:33:31 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-08-12 14:04:23 +0200 |
commit | 33f1532079a11ee550235c450f833b5d8bdf934e (patch) | |
tree | 29a48f3c9047cb60bd3932400f514dad79e37c98 /core/Middleware | |
parent | 35358bdde08d4acd5afbd2ab31bea6aedf416c32 (diff) | |
download | nextcloud-server-33f1532079a11ee550235c450f833b5d8bdf934e.tar.gz nextcloud-server-33f1532079a11ee550235c450f833b5d8bdf934e.zip |
Throw exception if you don't handle it
Diffstat (limited to 'core/Middleware')
-rw-r--r-- | core/Middleware/TwoFactorMiddleware.php | 2 |
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; } } |