From: Evan Prodromou Date: Tue, 24 Jun 2008 22:17:58 +0000 (-0400) Subject: correct field name X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d3679822530e351894ca1f809c97638873832a74;p=quix0rs-gnu-social.git correct field name darcs-hash:20080624221758-34904-8ba5bbf95a2f16e9bfebb2c4dbd4d2d357cf958e.gz --- diff --git a/actions/recoverpassword.php b/actions/recoverpassword.php index edfa9194da..2d38f09083 100644 --- a/actions/recoverpassword.php +++ b/actions/recoverpassword.php @@ -203,8 +203,10 @@ class RecoverpasswordAction extends Action { $this->client_error(_t('Unexpected password reset.')); return; } - $password = $this->trimmed('password'); + + $password = $this->trimmed('newpassword'); $confirm = $this->trimmed('confirm'); + if (!$password || strlen($password) < 6) { $this->show_password_form(_t('Password must be 6 chars or more.')); return;