mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[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
This commit is contained in:
@@ -3373,12 +3373,9 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
|
||||
{
|
||||
$auth_provider = $phpbb_container->get('auth.provider.oauth');
|
||||
$oauth_box_data = $auth_provider->get_login_data();
|
||||
foreach ($oauth_box_data as $service_name => $data)
|
||||
foreach ($oauth_box_data as $data)
|
||||
{
|
||||
$template->assign_block_vars('oauth', array(
|
||||
'SERVICE_NAME' => $service_name,
|
||||
'REDIRECT_URL' => $data['url'],
|
||||
));
|
||||
$template->assign_block_vars('oauth', $data);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user