aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_login_link.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/ucp/ucp_login_link.php')
-rw-r--r--phpBB/includes/ucp/ucp_login_link.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_login_link.php b/phpBB/includes/ucp/ucp_login_link.php
index 7e6374ee83..62641f0367 100644
--- a/phpBB/includes/ucp/ucp_login_link.php
+++ b/phpBB/includes/ucp/ucp_login_link.php
@@ -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';
}