aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-12-14 12:43:33 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-12-14 12:43:33 +0000
commitada8ca5814073acdf735d803a277af95a6bedf81 (patch)
tree17c017a0d21e9f34670cc36cc09b147c44054ebb
parenta7b95248c77aed540687c3461d96ed44a1153f33 (diff)
downloadelgg-ada8ca5814073acdf735d803a277af95a6bedf81.tar.gz
elgg-ada8ca5814073acdf735d803a277af95a6bedf81.tar.bz2
easier to extend login and registration forms now
git-svn-id: http://code.elgg.org/elgg/trunk@3756 36083f99-b078-4883-b0ff-0f9b5a30f544
-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');