summaryrefslogtreecommitdiff
path: root/actions/recoverpassword.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlezvous.ca>2008-06-24 17:58:26 -0400
committerEvan Prodromou <evan@controlezvous.ca>2008-06-24 17:58:26 -0400
commit589a6c05f7dda6e365298fb0854700a94853bb1a (patch)
tree94f9c3a4ac4e85100ff7e79ccf63dd9445177b9c /actions/recoverpassword.php
parent90583f31af6392005b11915e2e0f2a6755ab0ea7 (diff)
output a message when we send the recovery email
darcs-hash:20080624215826-34904-045d8e8cc25195eb045d2a96a526a6d2a9f0c218.gz
Diffstat (limited to 'actions/recoverpassword.php')
-rw-r--r--actions/recoverpassword.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/actions/recoverpassword.php b/actions/recoverpassword.php
index 66267e558..8bcfa9755 100644
--- a/actions/recoverpassword.php
+++ b/actions/recoverpassword.php
@@ -176,7 +176,7 @@ class RecoverpasswordAction extends Action {
$body .= 'If it was you, and you want to confirm, use the URL below:';
$body .= "\n\n";
$body .= "\t".common_local_url('confirmaddress',
- array('code' => $code));
+ array('code' => $confirm->code));
$body .= "\n\n";
$body .= 'If not, just ignore this message.';
$body .= "\n\n";
@@ -185,7 +185,14 @@ class RecoverpasswordAction extends Action {
$body .= common_config('site', 'name');
$body .= "\n";
- return mail_to_user($user, _t('Password recovery requested'), $body);
+ mail_to_user($user, _t('Password recovery requested'), $body);
+
+ common_show_header(_('Password recovery requested'));
+ common_element('p', NULL,
+ _t('Instructions for recovering your password ' .
+ 'have been sent to the email registered to your ' .
+ 'account.'));
+ common_show_footer();
}
function reset_password() {