aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/auth/provider/oauth/oauth.php
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-08-12 15:29:08 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-08-12 15:29:22 -0400
commit836d3ba22ec997f6c823c9b4594fb42c49524732 (patch)
tree374be02f34b439e0b1e82cdc67744e30c496a0b2 /phpBB/phpbb/auth/provider/oauth/oauth.php
parent4003e077c170e2c9aebbf582cb08249d80d37a3d (diff)
downloadforums-836d3ba22ec997f6c823c9b4594fb42c49524732.tar
forums-836d3ba22ec997f6c823c9b4594fb42c49524732.tar.gz
forums-836d3ba22ec997f6c823c9b4594fb42c49524732.tar.bz2
forums-836d3ba22ec997f6c823c9b4594fb42c49524732.tar.xz
forums-836d3ba22ec997f6c823c9b4594fb42c49524732.zip
[feature/oauth] Handle hidden fields
PHPBB3-11673
Diffstat (limited to 'phpBB/phpbb/auth/provider/oauth/oauth.php')
-rw-r--r--phpBB/phpbb/auth/provider/oauth/oauth.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/oauth.php b/phpBB/phpbb/auth/provider/oauth/oauth.php
index 1b0674a13b..cfffdf2c96 100644
--- a/phpBB/phpbb/auth/provider/oauth/oauth.php
+++ b/phpBB/phpbb/auth/provider/oauth/oauth.php
@@ -481,6 +481,10 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base
$redirect_url = build_url(false) . '&login=external&oauth_service=' . $actual_name;
$block_vars[$service_name] = array(
+ 'HIDDEN_FIELDS' => array(
+ 'oauth_service' => $actual_name,
+ ),
+
'REDIRECT_URL' => redirect($redirect_url, true),
'SERVICE_NAME' => $this->user->lang['AUTH_PROVIDER_OAUTH_SERVICE_' . strtoupper($actual_name)],
'UNIQUE_ID' => (isset($oauth_user_ids[$actual_name])) ? $oauth_user_ids[$actual_name] : null,