Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-08-12 13:33:31 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2016-08-12 15:04:23 +0300
commit33f1532079a11ee550235c450f833b5d8bdf934e (patch)
tree29a48f3c9047cb60bd3932400f514dad79e37c98 /core/Middleware
parent35358bdde08d4acd5afbd2ab31bea6aedf416c32 (diff)
Throw exception if you don't handle it
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;
}
}