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
1 changed files with 1 additions and 1 deletions

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]);
}