Update src/Module/OAuth/Authorize.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Michael Vogel 2021-05-12 03:53:40 +02:00 committed by GitHub
parent 4476634f6c
commit e99117ac22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ class Authorize extends BaseApi
Logger::info('Redirect to login');
$request = $_REQUEST;
unset($request['pagename']);
DI::app()->redirect('login?return_path=/oauth/authorize' . urlencode('?' . http_build_query($request)));
DI::app()->redirect('login?return_path=' . urlencode('/oauth/authorize?' . http_build_query($request)));
} else {
Logger::info('Already logged in user', ['uid' => $uid]);
}