X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Frecoverpassword.php;h=38c42f41d1b056ac303f723dd324ce7391d3fd82;hb=2abe10b8ea4b5d69fc7f6513bf465541454ca2cf;hp=1f2cff197513796e858e6749c3592bf7372cca8a;hpb=15a089f46efa0cf0dad7959af2967dccd9a7b8e6;p=quix0rs-gnu-social.git diff --git a/actions/recoverpassword.php b/actions/recoverpassword.php index 1f2cff1975..38c42f41d1 100644 --- a/actions/recoverpassword.php +++ b/actions/recoverpassword.php @@ -50,7 +50,7 @@ class RecoverpasswordAction extends Action { function check_code() { $code = $this->trimmed('code'); - $confirm = Confirm_address::staticGet($code); + $confirm = Confirm_address::staticGet('code', $code); if (!$confirm) { $this->client_error(_('No such recovery code.')); @@ -136,11 +136,13 @@ class RecoverpasswordAction extends Action { if ($msg) { common_element('div', 'error', $msg); } else { - common_element('div', 'instructions', + common_element_start('div', 'instructions'); + common_element('p', NULL, _('If you\'ve forgotten or lost your' . ' password, you can get a new one sent to' . ' the email address you have stored ' . ' in your account.')); + common_element_end('div'); } }