aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'views/default')
-rw-r--r--views/default/account/forms/login.php3
-rw-r--r--views/default/account/forms/register.php3
2 files changed, 6 insertions, 0 deletions
diff --git a/views/default/account/forms/login.php b/views/default/account/forms/login.php
index 189431698..e8d40729a 100644
--- a/views/default/account/forms/login.php
+++ b/views/default/account/forms/login.php
@@ -13,6 +13,9 @@ global $CONFIG;
$form_body = "<p class=\"loginbox\"><label>" . elgg_echo('username') . "<br />" . elgg_view('input/text', array('internalname' => 'username', 'class' => 'login-textarea')) . "</label>";
$form_body .= "<br />";
$form_body .= "<label>" . elgg_echo('password') . "<br />" . elgg_view('input/password', array('internalname' => 'password', 'class' => 'login-textarea')) . "</label><br />";
+
+$form_body .= elgg_view('login/extend');
+
$form_body .= elgg_view('input/submit', array('value' => elgg_echo('login'))) . " <div id=\"persistent_login\"><label><input type=\"checkbox\" name=\"persistent\" value=\"true\" />".elgg_echo('user:persistent')."</label></div></p>";
$form_body .= "<p class=\"loginbox\">";
$form_body .= (!isset($CONFIG->disable_registration) || !($CONFIG->disable_registration)) ? "<a href=\"{$vars['url']}account/register.php\">" . elgg_echo('register') . "</a> | " : "";
diff --git a/views/default/account/forms/register.php b/views/default/account/forms/register.php
index 99fdea272..3e53b6f05 100644
--- a/views/default/account/forms/register.php
+++ b/views/default/account/forms/register.php
@@ -24,6 +24,9 @@ $form_body .= "<label>" . elgg_echo('username') . "<br />" . elgg_view('input/te
$form_body .= "<label>" . elgg_echo('password') . "<br />" . elgg_view('input/password' , array('internalname' => 'password', 'class' => "general-textarea")) . "</label><br />";
$form_body .= "<label>" . elgg_echo('passwordagain') . "<br />" . elgg_view('input/password' , array('internalname' => 'password2', 'class' => "general-textarea")) . "</label><br />";
+// view to extend to add more fields to the registration form
+$form_body .= elgg_view('register/extend');
+
// Add captcha hook
$form_body .= elgg_view('input/captcha');