Skip to content

Commit af994e7

Browse files
committed
[ticket/16006] Create unique ID's for OAuth (un)linking
PHPBB3-16006
1 parent 4338032 commit af994e7

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

phpBB/phpbb/auth/provider/oauth/oauth.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,7 @@ public function get_auth_link_data($user_id = 0)
674674
'oauth_service' => $actual_name,
675675
),
676676

677+
'SERVICE_ID' => $actual_name,
677678
'SERVICE_NAME' => $this->user->lang['AUTH_PROVIDER_OAUTH_SERVICE_' . strtoupper($actual_name)],
678679
'UNIQUE_ID' => (isset($oauth_user_ids[$actual_name])) ? $oauth_user_ids[$actual_name] : null,
679680
);

phpBB/styles/prosilver/template/ucp_auth_link_oauth.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- BEGIN oauth -->
2-
<form id="ucp" method="post" action="{S_UCP_ACTION}">
2+
<form id="ucp_oauth_{oauth.SERVICE_ID}" method="post" action="{S_UCP_ACTION}">
33
<h3>{oauth.SERVICE_NAME}</h3>
44

55
<fieldset class="fields2">

0 commit comments

Comments
 (0)