[ticket/16006] Create unique ID's for OAuth (un)linking

PHPBB3-16006
This commit is contained in:
mrgoldy 2019-04-02 10:59:36 +02:00
parent 433803287a
commit af994e7a39
2 changed files with 2 additions and 1 deletions

View file

@ -674,6 +674,7 @@ class oauth extends \phpbb\auth\provider\base
'oauth_service' => $actual_name, 'oauth_service' => $actual_name,
), ),
'SERVICE_ID' => $actual_name,
'SERVICE_NAME' => $this->user->lang['AUTH_PROVIDER_OAUTH_SERVICE_' . strtoupper($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, 'UNIQUE_ID' => (isset($oauth_user_ids[$actual_name])) ? $oauth_user_ids[$actual_name] : null,
); );

View file

@ -1,5 +1,5 @@
<!-- BEGIN oauth --> <!-- 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> <h3>{oauth.SERVICE_NAME}</h3>
<fieldset class="fields2"> <fieldset class="fields2">