diff options
| author | Jakub Senko <jakubsenko@gmail.com> | 2018-07-26 16:34:11 +0200 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2019-05-09 19:00:29 +0200 |
| commit | 3914515199ba9f3c2ce84e28b0a9a2c4e3dfb270 (patch) | |
| tree | bef609553aaee9d21a952dc9be84fd1667e0bf64 /phpBB/phpbb/auth | |
| parent | 3c2e75b52adc18360a10590543f29513b95f206b (diff) | |
| download | forums-3914515199ba9f3c2ce84e28b0a9a2c4e3dfb270.tar forums-3914515199ba9f3c2ce84e28b0a9a2c4e3dfb270.tar.gz forums-3914515199ba9f3c2ce84e28b0a9a2c4e3dfb270.tar.bz2 forums-3914515199ba9f3c2ce84e28b0a9a2c4e3dfb270.tar.xz forums-3914515199ba9f3c2ce84e28b0a9a2c4e3dfb270.zip | |
[ticket/11838] OAuth registration from ucp_register
PHPBB3-11838
Diffstat (limited to 'phpBB/phpbb/auth')
| -rw-r--r-- | phpBB/phpbb/auth/provider/oauth/oauth.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/oauth.php b/phpBB/phpbb/auth/provider/oauth/oauth.php index 93419d2915..5e8cb3dea8 100644 --- a/phpBB/phpbb/auth/provider/oauth/oauth.php +++ b/phpBB/phpbb/auth/provider/oauth/oauth.php @@ -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)], |
