Update src/Module/OAuth/Authorize.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
4476634f6c
commit
e99117ac22
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class Authorize extends BaseApi
|
||||||
Logger::info('Redirect to login');
|
Logger::info('Redirect to login');
|
||||||
$request = $_REQUEST;
|
$request = $_REQUEST;
|
||||||
unset($request['pagename']);
|
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 {
|
} else {
|
||||||
Logger::info('Already logged in user', ['uid' => $uid]);
|
Logger::info('Already logged in user', ['uid' => $uid]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue