mirror of
https://github.com/grocy/grocy.git
synced 2026-03-27 23:29:25 +01:00
Set proper HTTP status when redirecting to /login
This commit is contained in:
parent
150cfba455
commit
893cfe13cd
|
|
@ -63,7 +63,7 @@ abstract class AuthMiddleware extends BaseMiddleware
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return $response->withHeader('Location', $this->AppContainer->get('UrlManager')->ConstructUrl('/login'));
|
return $response->withStatus(302)->withHeader('Location', $this->AppContainer->get('UrlManager')->ConstructUrl('/login'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user