mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 21:08:53 +00:00
[ticket/16055] Fix Oauth's redirects
Via forum, memberlist, topic or post etc.. PHPBB3-16055
This commit is contained in:
parent
61bdccbfd8
commit
72be8e0870
1 changed files with 1 additions and 1 deletions
|
@ -423,7 +423,7 @@ class oauth extends \phpbb\auth\provider\base
|
|||
if ($credentials['key'] && $credentials['secret'])
|
||||
{
|
||||
$actual_name = str_replace('auth.provider.oauth.service.', '', $service_name);
|
||||
$redirect_url = build_url(false) . '&login=external&oauth_service=' . $actual_name;
|
||||
$redirect_url = generate_board_url() . '/ucp.' . $this->php_ext . '?mode=login&login=external&oauth_service=' . $actual_name;
|
||||
$login_data['BLOCK_VARS'][$service_name] = array(
|
||||
'REDIRECT_URL' => redirect($redirect_url, true),
|
||||
'SERVICE_NAME' => $this->user->lang['AUTH_PROVIDER_OAUTH_SERVICE_' . strtoupper($actual_name)],
|
||||
|
|
Loading…
Add table
Reference in a new issue