diff options
Diffstat (limited to 'app/Middleware')
-rw-r--r-- | app/Middleware/AuthenticationMiddleware.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Middleware/AuthenticationMiddleware.php b/app/Middleware/AuthenticationMiddleware.php index 499843fd..54652e57 100644 --- a/app/Middleware/AuthenticationMiddleware.php +++ b/app/Middleware/AuthenticationMiddleware.php @@ -38,7 +38,7 @@ class AuthenticationMiddleware extends BaseMiddleware if ($this->request->isAjax()) { $this->response->text('Not Authorized', 401); } else { - $this->sessionStorage->redirectAfterLogin = $this->request->getUri(); + session_set('redirectAfterLogin', $this->request->getUri()); $this->response->redirect($this->helper->url->to('AuthController', 'login')); } } |