diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-08-12 20:15:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-12 20:15:32 +0200 |
commit | 11e089f112380b2c81bf1faa533ea6f626b40832 (patch) | |
tree | 15e54cd1cf20ceefb347bc25910f857b55b4537f | |
parent | 4a887d851e08f72eff8db79056a22104c6097767 (diff) | |
parent | 33f1532079a11ee550235c450f833b5d8bdf934e (diff) | |
download | nextcloud-server-11e089f112380b2c81bf1faa533ea6f626b40832.tar.gz nextcloud-server-11e089f112380b2c81bf1faa533ea6f626b40832.zip |
Merge pull request #844 from nextcloud/twofactor_mw_excep
TwoFactorMiddleware should forward Exception
-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; } } |