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.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/views/default/account/forms/forgotten_password.php b/views/default/account/forms/forgotten_password.php
index 18a9888fd..24c2df2f0 100644
--- a/views/default/account/forms/forgotten_password.php
+++ b/views/default/account/forms/forgotten_password.php
@@ -9,11 +9,11 @@
* @copyright Curverider Ltd 2008
* @link http://elgg.org/
*/
+
+ $form_body = "<p>" . elgg_echo('user:password:text') . "</p>";
+ $form_body .= "<p><b>". elgg_echo('username') . "</b> " . elgg_view('input/text', array('internalname' => 'username')) . "</p>";
+ $form_body .= "<p>" . elgg_view('input/submit', array('value' => elgg_echo('request'))) . "</p>";
?>
<div id="forgotten_box">
- <form action="<?php echo $vars['url']; ?>actions/user/requestnewpassword" method="post">
- <p><?php echo elgg_echo('user:password:text'); ?></p>
- <p><b><?php echo elgg_echo('username'); ?></b> <?php echo elgg_view('input/text', array('internalname' => 'username')); ?></p>
- <p><input type="submit" name="submit" class="submit_button" value="<?php echo elgg_echo('request'); ?>" /></p>
- </form>
+ <?php echo elgg_view('input/form', array('action' => "{$vars['url']}actions/user/requestnewpassword", 'body' => $form_body)); ?>
</div> \ No newline at end of file