mirror of
https://github.com/grocy/grocy.git
synced 2026-03-27 23:29:25 +01:00
parent
71c724ccdd
commit
cc1d1121d3
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user