]> source.dussan.org Git - nextcloud-server.git/commitdiff
Throw exception if you don't handle it 844/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Fri, 12 Aug 2016 10:33:31 +0000 (12:33 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 12 Aug 2016 12:04:23 +0000 (14:04 +0200)
core/Middleware/TwoFactorMiddleware.php

index c87058d11fae0dee43ce9184baa68e1bd48e0270..9b930edd57df4029c3a078bce4a371da884f182c 100644 (file)
@@ -129,6 +129,8 @@ class TwoFactorMiddleware extends Middleware {
                if ($exception instanceof UserAlreadyLoggedInException) {
                        return new RedirectResponse($this->urlGenerator->linkToRoute('files.view.index'));
                }
+
+               throw $exception;
        }
 
 }