summaryrefslogtreecommitdiff
path: root/app/Middleware/PostAuthenticationMiddleware.php
diff options
context:
space:
mode:
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);