1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[feature/oauth] More work on login linking accounts

PHPBB3-11673
This commit is contained in:
Joseph Warner
2013-07-25 14:53:05 -04:00
parent 317a71a838
commit 59852b5997
3 changed files with 58 additions and 0 deletions

View File

@@ -32,6 +32,29 @@ class ucp_login_link
$auth_provider = 'auth.provider.' . $request->variable('auth_provider', $config['auth_method']);
$auth_provider = $phpbb_container->get($auth_provider);
// Process POST and GET data
$login_error = false;
$login_username = '';
// Common template elements
$template->assign_vars(array(
'PASSWORD_CREDENTIAL' => 'password',
'USERNAME_CREDENTIAL' => 'username',
));
// Registration template
$register_link = 'ucp.php?mode=register';
$template->assign_vars(array(
'REGISTER_LINK' => redirect($register_link, true),
));
// Link to existing account template
$template->assign_vars(array(
'LOGIN_ERROR' => $login_error,
'LOGIN_USERNAME' => $login_username,
));
$this->tpl_name = 'ucp_login_link';
$this->page_title = 'UCP_LOGIN_LINK';
}