Fixed typo (references #697)

This commit is contained in:
Bernd Bestel 2020-04-03 18:55:48 +02:00
parent ca9354064d
commit 30908f5ba9
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

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