summaryrefslogtreecommitdiff
path: root/app/Middleware
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-26 21:05:54 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-26 21:05:54 -0400
commit33dea152fc6b0c061b1f61060cc75710dd0ec236 (patch)
treedd40e7501f42703957244171b89905b9050fe1d0 /app/Middleware
parentd9101da79e839984e0e782b48113dc61157d6688 (diff)
Rename 2FA controller
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 c1237f47..650d47aa 100644
--- a/app/Middleware/PostAuthenticationMiddleware.php
+++ b/app/Middleware/PostAuthenticationMiddleware.php
@@ -19,7 +19,7 @@ class PostAuthenticationMiddleware extends BaseMiddleware
{
$controller = strtolower($this->router->getController());
$action = strtolower($this->router->getAction());
- $ignore = ($controller === 'twofactor' && in_array($action, array('code', 'check'))) || ($controller === 'auth' && $action === 'logout');
+ $ignore = ($controller === 'twofactorcontroller' && in_array($action, array('code', 'check'))) || ($controller === 'auth' && $action === 'logout');
if ($ignore === false && $this->userSession->hasPostAuthentication() && ! $this->userSession->isPostAuthenticationValidated()) {
$this->nextMiddleware = null;
@@ -28,7 +28,7 @@ class PostAuthenticationMiddleware extends BaseMiddleware
$this->response->text('Not Authorized', 401);
}
- $this->response->redirect($this->helper->url->to('twofactor', 'code'));
+ $this->response->redirect($this->helper->url->to('TwoFactorController', 'code'));
}
$this->next();