diff options
| author | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-24 10:39:48 -0400 |
|---|---|---|
| committer | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-24 10:40:42 -0400 |
| commit | 58d5820069a5889ae2f09319ae4f972c8b8f87a8 (patch) | |
| tree | 83073bb0422d6a33d78234083512cbefeeb3bad0 /phpBB/includes/functions.php | |
| parent | ffb14a69887e0410c5093f23142bbc3375552620 (diff) | |
| download | forums-58d5820069a5889ae2f09319ae4f972c8b8f87a8.tar forums-58d5820069a5889ae2f09319ae4f972c8b8f87a8.tar.gz forums-58d5820069a5889ae2f09319ae4f972c8b8f87a8.tar.bz2 forums-58d5820069a5889ae2f09319ae4f972c8b8f87a8.tar.xz forums-58d5820069a5889ae2f09319ae4f972c8b8f87a8.zip | |
[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
Diffstat (limited to 'phpBB/includes/functions.php')
| -rw-r--r-- | phpBB/includes/functions.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index b14f03f5a0..02cdfd7ed1 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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); } } |
