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:
@@ -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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user