diff options
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(); |