mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00: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
|
||||
{
|
||||
return $response->withHeader('Location', $this->AppContainer->get('UrlManager')->ConstructUrl('/login'));
|
||||
return $response->withStatus(302)->withHeader('Location', $this->AppContainer->get('UrlManager')->ConstructUrl('/login'));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user