make oauth endpoints openid compliant #12

Merged
bence merged 2 commits from oauth-improvements into master 2023-04-11 19:47:54 +02:00
Showing only changes of commit 7c0ebe6668 - Show all commits

View File

@ -29,7 +29,7 @@ if ($match !== null) {
}
if (!$authorized) {
Container::$request->session()->set('redirect_after_login', $url);
Container::$request->session()->set('redirect_after_login', substr($_SERVER['REQUEST_URI'], strlen('/')));
$response = new Redirect(Container::$routeCollection->getRoute('login')->generateLink(), IRedirect::TEMPORARY);
header('Location: ' . $response->getUrl(), true, $response->getHttpCode());
return;