diff options
author | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-29 16:03:54 -0400 |
---|---|---|
committer | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-29 16:04:08 -0400 |
commit | 3d55e5faa91f0161bc020720a81b50171b30f49d (patch) | |
tree | cb289863ebaccc21ea4aeb39902549a440de09dc /phpBB/phpbb/auth/provider/oauth/oauth.php | |
parent | 641433920e43478a021743557f69382292f60f68 (diff) | |
download | forums-3d55e5faa91f0161bc020720a81b50171b30f49d.tar forums-3d55e5faa91f0161bc020720a81b50171b30f49d.tar.gz forums-3d55e5faa91f0161bc020720a81b50171b30f49d.tar.bz2 forums-3d55e5faa91f0161bc020720a81b50171b30f49d.tar.xz forums-3d55e5faa91f0161bc020720a81b50171b30f49d.zip |
[feature/oauth] Works in all tests now
PHPBB3-11673
Diffstat (limited to 'phpBB/phpbb/auth/provider/oauth/oauth.php')
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/oauth.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/oauth.php b/phpBB/phpbb/auth/provider/oauth/oauth.php index 56655fdfd9..6526667794 100644 --- a/phpBB/phpbb/auth/provider/oauth/oauth.php +++ b/phpBB/phpbb/auth/provider/oauth/oauth.php @@ -394,15 +394,15 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base $this->current_uri->setQuery('mode=login_link&login_link_oauth_service=' . $service_name); $service_credentials = $this->service_providers[$service_name]->get_service_credentials(); $scopes = $this->service_providers[$service_name]->get_auth_scope(); - $service = $this->get_service($service_name, $storage, $service_credentials, $scopes); + $service = $this->get_service(strtolower($link_data['oauth_service']), $storage, $service_credentials, $scopes); $this->service_providers[$service_name]->set_external_service_provider($service); // The user has already authenticated successfully, request to authenticate again - $unique_id = $this->service_providers[$service_name]->perform_auth_login(); + $unique_id = $this->service_providers[$service_name]->perform_auth_link(); // Insert into table, they will be able to log in after this $data = array( - 'user_id' => $this->user->data['user_id'], + 'user_id' => $link_data['user_id'], 'provider' => strtolower($link_data['oauth_service']), 'oauth_provider_id' => $unique_id, ); |