mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 05:48:51 +00:00
[feature/oauth] Initial UI element added, this is non-final
At this point, all UI changes are purely for testing and should not be considered final. PHPBB3-11673
This commit is contained in:
parent
0be81468e7
commit
5578b7a578
2 changed files with 13 additions and 1 deletions
|
@ -3373,6 +3373,13 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
|
|||
{
|
||||
$auth_provider = $phpbb_container->get('auth.provider.oauth');
|
||||
$oauth_box_data = $auth_provider->get_login_data();
|
||||
foreach ($oauth_box_data as $service_name => $data)
|
||||
{
|
||||
$template->assign_block_vars('oauth', array(
|
||||
'SERVICE_NAME' => $service_name,
|
||||
'REDIRECT_URL' => $data['url'],
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
$s_hidden_fields = build_hidden_fields($s_hidden_fields);
|
||||
|
|
|
@ -49,7 +49,12 @@
|
|||
</div><!-- IF OAUTH_LOGIN -->
|
||||
|
||||
<div class="content">
|
||||
|
||||
<!-- BEGIN oauth -->
|
||||
<dl>
|
||||
<dt> </dt>
|
||||
<dd><a href="{oauth.REDIRECT_URL}" class="button2">{oauth.SERVICE_NAME}</a></dd>
|
||||
</dl>
|
||||
<!-- END oauth -->
|
||||
</div><!-- ENDIF -->
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue