mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[feature/oauth] More template work
PHPBB3-11673
This commit is contained in:
parent
0b80aaf217
commit
69cb2e4c60
4 changed files with 19 additions and 5 deletions
|
@ -30,6 +30,7 @@ class ucp_auth_link
|
||||||
if ($provider_data === null)
|
if ($provider_data === null)
|
||||||
{
|
{
|
||||||
// does not support this page, throw error?
|
// does not support this page, throw error?
|
||||||
|
throw new Exception('TEMPORARY EXCEPTION');
|
||||||
}
|
}
|
||||||
|
|
||||||
$error = array();
|
$error = array();
|
||||||
|
@ -54,6 +55,8 @@ class ucp_auth_link
|
||||||
$s_hidden_fields = build_hidden_fields($s_hidden_fields);
|
$s_hidden_fields = build_hidden_fields($s_hidden_fields);
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
|
'PROVIDER_TEMPLATE_FILE' => $provider_data['TEMPLATE_FILE'],
|
||||||
|
|
||||||
'S_HIDDEN_FIELDS' => $s_hidden_fields,
|
'S_HIDDEN_FIELDS' => $s_hidden_fields,
|
||||||
'S_UCP_ACTION' => $this->u_action,
|
'S_UCP_ACTION' => $this->u_action,
|
||||||
));
|
));
|
||||||
|
|
|
@ -442,4 +442,14 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function get_auth_link_data()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
'TEMPLATE_FILE' => 'ucp_auth_link_oauth.html',
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
|
|
||||||
<h2>{L_UCP_AUTH_LINK_TITLE}</h2>
|
<h2>{L_UCP_AUTH_LINK_TITLE}</h2>
|
||||||
|
|
||||||
<form id="ucp" method="post" action="{S_UCP_ACTION}">
|
<!-- INCLUDE {PROVIDER_TEMPLATE_FILE} -->
|
||||||
|
|
||||||
{S_HIDDEN_FIELDS}
|
|
||||||
{S_FORM_TOKEN}
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<!-- INCLUDE ucp_footer.html -->
|
<!-- INCLUDE ucp_footer.html -->
|
||||||
|
|
5
phpBB/styles/prosilver/template/ucp_auth_link_oauth.html
Normal file
5
phpBB/styles/prosilver/template/ucp_auth_link_oauth.html
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<form id="ucp" method="post" action="{S_UCP_ACTION}">
|
||||||
|
|
||||||
|
{S_HIDDEN_FIELDS}
|
||||||
|
{S_FORM_TOKEN}
|
||||||
|
</form>
|
Loading…
Add table
Reference in a new issue