aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrgoldy <gijsmartens1@gmail.com>2019-04-02 10:59:36 +0200
committermrgoldy <gijsmartens1@gmail.com>2019-04-02 10:59:36 +0200
commitaf994e7a390eea1125d63a6d0e2ef7b945549669 (patch)
tree6a47035e40feb8b38daa2c5df1cd7e684b925f8a
parent433803287ad3eccece6fd5f358fa8dab10516bc6 (diff)
downloadforums-af994e7a390eea1125d63a6d0e2ef7b945549669.tar
forums-af994e7a390eea1125d63a6d0e2ef7b945549669.tar.gz
forums-af994e7a390eea1125d63a6d0e2ef7b945549669.tar.bz2
forums-af994e7a390eea1125d63a6d0e2ef7b945549669.tar.xz
forums-af994e7a390eea1125d63a6d0e2ef7b945549669.zip
[ticket/16006] Create unique ID's for OAuth (un)linking
PHPBB3-16006
-rw-r--r--phpBB/phpbb/auth/provider/oauth/oauth.php1
-rw-r--r--phpBB/styles/prosilver/template/ucp_auth_link_oauth.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/oauth.php b/phpBB/phpbb/auth/provider/oauth/oauth.php
index 8809a0c6b4..3e9b424e8d 100644
--- a/phpBB/phpbb/auth/provider/oauth/oauth.php
+++ b/phpBB/phpbb/auth/provider/oauth/oauth.php
@@ -674,6 +674,7 @@ class oauth extends \phpbb\auth\provider\base
'oauth_service' => $actual_name,
),
+ 'SERVICE_ID' => $actual_name,
'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,
);
diff --git a/phpBB/styles/prosilver/template/ucp_auth_link_oauth.html b/phpBB/styles/prosilver/template/ucp_auth_link_oauth.html
index 18316613b0..60061a3139 100644
--- a/phpBB/styles/prosilver/template/ucp_auth_link_oauth.html
+++ b/phpBB/styles/prosilver/template/ucp_auth_link_oauth.html
@@ -1,5 +1,5 @@
<!-- BEGIN oauth -->
- <form id="ucp" method="post" action="{S_UCP_ACTION}">
+ <form id="ucp_oauth_{oauth.SERVICE_ID}" method="post" action="{S_UCP_ACTION}">
<h3>{oauth.SERVICE_NAME}</h3>
<fieldset class="fields2">