Login redirect 307 (temporary)
This commit is contained in:
@ -24,7 +24,7 @@ class Authentication
|
||||
return $handler->handle($request);
|
||||
}
|
||||
$this->logger->notice("Not logged in.");
|
||||
$response = $this->responseFactory->createResponse(301, 'Not logged in')
|
||||
$response = $this->responseFactory->createResponse(307, 'Not logged in')
|
||||
->withHeader('Referer', (string) $request->getUri())
|
||||
->withHeader('X-Redirected-URI', (string) $request->getUri());
|
||||
$url = "{$request->getUri()}";
|
||||
|
@ -22,7 +22,7 @@ class Errors
|
||||
} catch (Error $error) {
|
||||
$this->logger->error($error);
|
||||
}
|
||||
$response = $this->responseFactory->createResponse(600, 'Internal Server Error');
|
||||
$response = $this->responseFactory->createResponse(500, 'Internal Server Error');
|
||||
if (str_contains($request->getUri()->getPath(), '/api')) {
|
||||
return $response;
|
||||
}
|
||||
|
Reference in New Issue
Block a user