1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[feature/oauth] Start linking/registering OAuth accounts during login

PHPBB3-11673
This commit is contained in:
Joseph Warner
2013-07-24 13:46:33 -04:00
parent 669586c134
commit 581cb37b8c
4 changed files with 30 additions and 1 deletions

View File

@@ -172,7 +172,15 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base
if (!$row)
{
// The user does not yet exist, ask if they wish to register the account
throw new Exception($unique_id);
return array(
'status' => LOGIN_SUCCESS_LINK_PROFILE,
'error_msg' => 'LOGIN_OAUTH_ACCOUNT_NOT_LINKED',
'user_row' => array(),
'redirect_data' => array(
'auth_provider' => 'oauth',
'oauth_service' => $service_name_original,
),
);
}
// Retrieve the user's account