mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-22 00:32:29 +02:00
[feature/oauth] Fix bug found in testing
PHPBB3-11673
This commit is contained in:
parent
0ea555bbc7
commit
43e08e221f
@ -48,6 +48,9 @@ class ucp_login_link
|
||||
$auth_provider = 'auth.provider.' . $request->variable('auth_provider', $config['auth_method']);
|
||||
$auth_provider = $phpbb_container->get($auth_provider);
|
||||
|
||||
// Set the link_method to login_link
|
||||
$data['link_method'] = 'login_link';
|
||||
|
||||
// Have the authentication provider check that all necessary data is available
|
||||
$result = $auth_provider->login_link_has_necessary_data($data);
|
||||
if ($result !== null)
|
||||
@ -73,9 +76,6 @@ class ucp_login_link
|
||||
// Give the user_id to the data
|
||||
$data['user_id'] = $login_result['user_row']['user_id'];
|
||||
|
||||
// Set the link_method to login_link
|
||||
$data['link_method'] = 'login_link';
|
||||
|
||||
// The user is now logged in, attempt to link the user to the external account
|
||||
$result = $auth_provider->link_account($data);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user