1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[feature/oauth] Start implementing link/unlink actions

PHPBB3-11673
This commit is contained in:
Joseph Warner
2013-08-14 15:19:26 -04:00
parent 836d3ba22e
commit 67b1ec5bb8
3 changed files with 26 additions and 6 deletions

View File

@@ -48,7 +48,20 @@ class ucp_auth_link
if (!sizeof($error))
{
// Any post data could be necessary for auth (un)linking
$link_data = $request->get_super_global(phpbb_request_interface::POST);
// The current user_id is also necessary
$link_data['user_id'] = $user->data['user_id'];
if ($request->variable('link', false, false, phpbb_request_interface::POST))
{
$error[] = $auth_provider->link_account($link_data);
}
else
{
$error[] = $auth_provider->unlink_account($link_data);
}
}
}