summaryrefslogtreecommitdiff
path: root/app/Middleware/PostAuthenticationMiddleware.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-15 20:56:01 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-15 20:56:01 -0400
commit4eaab1f6da1a56376a840231f7b8a10469308f97 (patch)
tree8f96f9f7562c69b19a2faf53923b5ba9cdb51397 /app/Middleware/PostAuthenticationMiddleware.php
parent8a6f02735b628033a3284d06a9f633bd260e19ef (diff)
Added unit tests for middleware
Diffstat (limited to 'app/Middleware/PostAuthenticationMiddleware.php')
-rw-r--r--app/Middleware/PostAuthenticationMiddleware.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Middleware/PostAuthenticationMiddleware.php b/app/Middleware/PostAuthenticationMiddleware.php
index 8287c10e..c1237f47 100644
--- a/app/Middleware/PostAuthenticationMiddleware.php
+++ b/app/Middleware/PostAuthenticationMiddleware.php
@@ -22,7 +22,7 @@ class PostAuthenticationMiddleware extends BaseMiddleware
$ignore = ($controller === 'twofactor' && in_array($action, array('code', 'check'))) || ($controller === 'auth' && $action === 'logout');
if ($ignore === false && $this->userSession->hasPostAuthentication() && ! $this->userSession->isPostAuthenticationValidated()) {
- $this->setNextMiddleware(null);
+ $this->nextMiddleware = null;
if ($this->request->isAjax()) {
$this->response->text('Not Authorized', 401);