1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-04 13:35:13 +02:00

[feature/oauth] More template work

PHPBB3-11673
This commit is contained in:
Joseph Warner 2013-08-09 05:26:44 -04:00
parent 0b80aaf217
commit 69cb2e4c60
4 changed files with 19 additions and 5 deletions

View File

@ -30,6 +30,7 @@ class ucp_auth_link
if ($provider_data === null)
{
// does not support this page, throw error?
throw new Exception('TEMPORARY EXCEPTION');
}
$error = array();
@ -54,6 +55,8 @@ class ucp_auth_link
$s_hidden_fields = build_hidden_fields($s_hidden_fields);
$template->assign_vars(array(
'PROVIDER_TEMPLATE_FILE' => $provider_data['TEMPLATE_FILE'],
'S_HIDDEN_FIELDS' => $s_hidden_fields,
'S_UCP_ACTION' => $this->u_action,
));

View File

@ -442,4 +442,14 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base
return;
}
/**
* {@inheritdoc}
*/
public function get_auth_link_data()
{
return array(
'TEMPLATE_FILE' => 'ucp_auth_link_oauth.html',
);
}
}

View File

@ -2,10 +2,6 @@
<h2>{L_UCP_AUTH_LINK_TITLE}</h2>
<form id="ucp" method="post" action="{S_UCP_ACTION}">
{S_HIDDEN_FIELDS}
{S_FORM_TOKEN}
</form>
<!-- INCLUDE {PROVIDER_TEMPLATE_FILE} -->
<!-- INCLUDE ucp_footer.html -->

View File

@ -0,0 +1,5 @@
<form id="ucp" method="post" action="{S_UCP_ACTION}">
{S_HIDDEN_FIELDS}
{S_FORM_TOKEN}
</form>