diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-12 01:08:25 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-12 01:08:25 +0000 |
commit | 3e697c6ef822a080a2bbfb59f54a8b5fe2608cdb (patch) | |
tree | 2f06b12cc171451f3e9bfa7ad43b61b8f6955928 /engine/lib | |
parent | fbc1fdd0b7244d2f03164b62eb893223ff930319 (diff) | |
download | elgg-3e697c6ef822a080a2bbfb59f54a8b5fe2608cdb.tar.gz elgg-3e697c6ef822a080a2bbfb59f54a8b5fe2608cdb.tar.bz2 |
One more conversion to elgg_view_form
git-svn-id: http://code.elgg.org/elgg/trunk@8128 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/users.php | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index 4d388d574..fcb489394 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -785,26 +785,7 @@ function elgg_user_resetpassword_page_handler($page) { forward(); } - $form_body = elgg_echo('user:resetpassword:reset_password_confirm') . "<br />"; - - $form_body .= elgg_view('input/hidden', array( - 'internalname' => 'u', - 'value' => $user_guid - )); - - $form_body .= elgg_view('input/hidden', array( - 'internalname' => 'c', - 'value' => $code - )); - - $form_body .= elgg_view('input/submit', array( - 'value' => elgg_echo('resetpassword') - )); - - $form .= elgg_view('input/form', array( - 'body' => $form_body, - 'action' => 'action/user/passwordreset' - )); + $form = elgg_view_form('user/passwordreset', array(), array('user' => $user)); $title = elgg_echo('resetpassword'); $content = elgg_view_title(elgg_echo('resetpassword')) . $form; |