Set proper HTTP status when redirecting to /login

This commit is contained in:
Bernd Bestel 2022-04-08 17:06:51 +02:00
parent 150cfba455
commit 893cfe13cd
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

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