diff options
| author | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-24 10:39:48 -0400 |
|---|---|---|
| committer | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-24 10:40:42 -0400 |
| commit | 58d5820069a5889ae2f09319ae4f972c8b8f87a8 (patch) | |
| tree | 83073bb0422d6a33d78234083512cbefeeb3bad0 /phpBB/phpbb | |
| parent | ffb14a69887e0410c5093f23142bbc3375552620 (diff) | |
| download | forums-58d5820069a5889ae2f09319ae4f972c8b8f87a8.tar forums-58d5820069a5889ae2f09319ae4f972c8b8f87a8.tar.gz forums-58d5820069a5889ae2f09319ae4f972c8b8f87a8.tar.bz2 forums-58d5820069a5889ae2f09319ae4f972c8b8f87a8.tar.xz forums-58d5820069a5889ae2f09319ae4f972c8b8f87a8.zip | |
[feature/oauth] Basic login functionality now working
These changes are currently unique to OAuth and need to be made
generic so that any auth provider can modify the login template.
PHPBB3-11673
Diffstat (limited to 'phpBB/phpbb')
| -rw-r--r-- | phpBB/phpbb/auth/provider/oauth/oauth.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/oauth.php b/phpBB/phpbb/auth/provider/oauth/oauth.php index 6e822101e3..0762e202db 100644 --- a/phpBB/phpbb/auth/provider/oauth/oauth.php +++ b/phpBB/phpbb/auth/provider/oauth/oauth.php @@ -272,11 +272,12 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base $credentials = $service_provider->get_service_credentials(); if ($credentials['key'] && $credentials['secret']) { - $login_data[$service_provider] = array(); - - // Build the redirect url for the box - $redirect_url = build_url(false) . '&oauth_service=' . $service_name; - $login_data[$service_provider]['url'] = redirect($redirect_url, true); + $actual_name = str_replace('auth.provider.oauth.service.', '', $service_name); + $redirect_url = build_url(false) . '&login=external&oauth_service=' . $actual_name; + $login_data[$service_name] = array( + 'REDIRECT_URL' => redirect($redirect_url, true), + 'SERVICE_NAME' => $this->user->lang['AUTH_PROVIDER_OAUTH_SERVICE_' . strtoupper($actual_name)], + ); } } |
