Search
This commit is contained in:
@ -17,7 +17,9 @@ class Authentication
|
||||
return $handler->handle($request);
|
||||
}
|
||||
$response = $this->responseFactory->createResponse(301, 'Not logged in');
|
||||
return $response->withHeader('Location', $this->login_url)
|
||||
$uri = urlencode(base64_encode((string) $request->getUri()));
|
||||
return $response->withHeader('Location', implode('?', [$this->login_url, "url={$uri}"]))
|
||||
->withHeader('Referer', (string) $request->getUri())
|
||||
->withHeader('X-Redirected-URI', (string) $request->getUri());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user