aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/auth/provider
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-07-23 14:13:51 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-07-23 14:14:09 -0400
commit32678f63ed04a8770720da4d94d01648dc595e82 (patch)
tree17761a9b5940b8d2793aa85b87671a577adf8938 /phpBB/phpbb/auth/provider
parent93cbdc37b51edf14cb2dbebb1ccb71a612f7fd94 (diff)
downloadforums-32678f63ed04a8770720da4d94d01648dc595e82.tar
forums-32678f63ed04a8770720da4d94d01648dc595e82.tar.gz
forums-32678f63ed04a8770720da4d94d01648dc595e82.tar.bz2
forums-32678f63ed04a8770720da4d94d01648dc595e82.tar.xz
forums-32678f63ed04a8770720da4d94d01648dc595e82.zip
[feature/oauth] Finish the template so it "works"
PHPBB3-11673
Diffstat (limited to 'phpBB/phpbb/auth/provider')
-rw-r--r--phpBB/phpbb/auth/provider/oauth/oauth.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/oauth.php b/phpBB/phpbb/auth/provider/oauth/oauth.php
index 31450a573f..6ad0293e8e 100644
--- a/phpBB/phpbb/auth/provider/oauth/oauth.php
+++ b/phpBB/phpbb/auth/provider/oauth/oauth.php
@@ -271,9 +271,12 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base
foreach ($this->service_providers as $service_name => $service_provider)
{
$actual_name = str_replace('auth.provider.oauth.service.', '', $service_name);
- $ret['TEMPLATE_VARS'][$actual_name] = array();
- $ret['TEMPLATE_VARS'][$actual_name]['NAME'] = $actual_name;
- $ret['TEMPLATE_VARS'][$actual_name]['ACTUAL_NAME'] = 'L_AUTH_PROVIDER_OAUTH_SERVICE_' . strtoupper($actual_name);
+ $ret['TEMPLATE_VARS'][$actual_name] = array(
+ 'ACTUAL_NAME' => 'L_AUTH_PROVIDER_OAUTH_SERVICE_' . strtoupper($actual_name),
+ 'KEY' => $new_config['auth_oauth_' . $actual_name . '_key'],
+ 'NAME' => $actual_name,
+ 'SECRET' => $new_config['auth_oauth_' . $actual_name . '_secret'],
+ );
}
return $ret;