summaryrefslogtreecommitdiff
path: root/app/Middleware
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-09-10 23:12:38 -0400
committerFrederic Guillot <fred@kanboard.net>2016-09-10 23:12:38 -0400
commita0227cad69aff9486fba1d7b2a19e6da97450100 (patch)
treee4585be087759022b8a3d0108eacff3494da470e /app/Middleware
parent44f680cf2f1463721eb5bdb7eda4d3b339e63ba9 (diff)
Define only what is allowed for column restrictions
Diffstat (limited to 'app/Middleware')
-rw-r--r--app/Middleware/PostAuthenticationMiddleware.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Middleware/PostAuthenticationMiddleware.php b/app/Middleware/PostAuthenticationMiddleware.php
index f7eccbce..8ad1f1a3 100644
--- a/app/Middleware/PostAuthenticationMiddleware.php
+++ b/app/Middleware/PostAuthenticationMiddleware.php
@@ -26,9 +26,9 @@ class PostAuthenticationMiddleware extends BaseMiddleware
if ($this->request->isAjax()) {
$this->response->text('Not Authorized', 401);
+ } else {
+ $this->response->redirect($this->helper->url->to('TwoFactorController', 'code'));
}
-
- $this->response->redirect($this->helper->url->to('TwoFactorController', 'code'));
}
$this->next();