aboutsummaryrefslogtreecommitdiff
path: root/views/default/account/forms/forgotten_password.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/account/forms/forgotten_password.php')
-rw-r--r--views/default/account/forms/forgotten_password.php18
1 files changed, 6 insertions, 12 deletions
diff --git a/views/default/account/forms/forgotten_password.php b/views/default/account/forms/forgotten_password.php
index 407f8e71c..9fe8e53a2 100644
--- a/views/default/account/forms/forgotten_password.php
+++ b/views/default/account/forms/forgotten_password.php
@@ -14,19 +14,13 @@ $form_body .= "<p><label>". elgg_echo('username') . " "
$form_body .= elgg_view('input/captcha');
$form_body .= "<p>" . elgg_view('input/submit', array('value' => elgg_echo('request'))) . "</p>";
+echo elgg_view('input/form', array(
+ 'action' => "{$vars['url']}action/user/requestnewpassword",
+ 'body' => $form_body,
+ 'class' => "margin_top"
+));
?>
-<div id="elgg_content" class="sidebar">
- <div id="elgg_page_contents" class="clearfloat forgotten_password">
- <h2><?php echo elgg_echo('user:password:lost'); ?></h2>
- <?php
- echo elgg_view('input/form', array(
- 'action' => "{$vars['url']}action/user/requestnewpassword",
- 'body' => $form_body,
- 'class' => "margin_top"
- ));
- ?>
- </div>
-</div>
+
<script type="text/javascript">
$(document).ready(function() { $('input[name=username]').focus(); });
</script> \ No newline at end of file