Fixed typo (references #697)

(cherry picked from commit 30908f5ba9)
This commit is contained in:
Bernd Bestel
2020-04-03 18:55:48 +02:00
parent 71c724ccdd
commit cc1d1121d3

View File

@@ -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