From 4eaab1f6da1a56376a840231f7b8a10469308f97 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 15 May 2016 20:56:01 -0400 Subject: Added unit tests for middleware --- app/Middleware/PostAuthenticationMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Middleware/PostAuthenticationMiddleware.php') 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); -- cgit v1.2.3