diff --git a/middleware/SessionAuthMiddleware.php b/middleware/SessionAuthMiddleware.php index f2824925..94895e05 100644 --- a/middleware/SessionAuthMiddleware.php +++ b/middleware/SessionAuthMiddleware.php @@ -47,7 +47,7 @@ class SessionAuthMiddleware extends BaseMiddleware if ((!isset($_COOKIE[$this->SessionCookieName]) || !$sessionService->IsValidSession($_COOKIE[$this->SessionCookieName])) && $routeName !== 'login') { define('GROCY_AUTHENTICATED', false); - $response = $this->responseFactory->createResponse(); + $response = $this->ResponseFactory->createResponse(); return $response->withHeader('Location', $this->AppContainer->get('UrlManager')->ConstructUrl('/login')); } else