aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/user
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-01 00:39:40 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-01 00:39:40 +0000
commitf1c69003389c75ad8061852487923f5bfb5a6001 (patch)
treee363e6f538a5a1a41a8a616e1886ed72c421bda5 /views/default/forms/user
parentbbc906683aefec7fa8360dd0718e142bea829fef (diff)
downloadelgg-f1c69003389c75ad8061852487923f5bfb5a6001.tar.gz
elgg-f1c69003389c75ad8061852487923f5bfb5a6001.tar.bz2
Fixes #3207 passing code variable to form for password reset
git-svn-id: http://code.elgg.org/elgg/trunk@8886 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/forms/user')
-rw-r--r--views/default/forms/user/passwordreset.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/views/default/forms/user/passwordreset.php b/views/default/forms/user/passwordreset.php
index 7b13f120c..3c89776f6 100644
--- a/views/default/forms/user/passwordreset.php
+++ b/views/default/forms/user/passwordreset.php
@@ -1,19 +1,20 @@
<?php
+/**
+ * Reset user password form
+ */
-$user = $vars['user'];
-
-echo elgg_echo('user:resetpassword:reset_password_confirm') . "<br />";
+echo autop(elgg_echo('user:resetpassword:reset_password_confirm'));
echo elgg_view('input/hidden', array(
'name' => 'u',
- 'value' => $user->guid
+ 'value' => $vars['guid'],
));
echo elgg_view('input/hidden', array(
'name' => 'c',
- 'value' => $code
+ 'value' => $vars['code'],
));
echo elgg_view('input/submit', array(
'value' => elgg_echo('resetpassword')
-)); \ No newline at end of file
+));