diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-09-10 23:12:38 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-09-10 23:12:38 -0400 |
commit | a0227cad69aff9486fba1d7b2a19e6da97450100 (patch) | |
tree | e4585be087759022b8a3d0108eacff3494da470e /app/Middleware | |
parent | 44f680cf2f1463721eb5bdb7eda4d3b339e63ba9 (diff) |
Define only what is allowed for column restrictions
Diffstat (limited to 'app/Middleware')
-rw-r--r-- | app/Middleware/PostAuthenticationMiddleware.php | 4 |
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(); |