From d3679822530e351894ca1f809c97638873832a74 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 24 Jun 2008 18:17:58 -0400 Subject: correct field name darcs-hash:20080624221758-34904-8ba5bbf95a2f16e9bfebb2c4dbd4d2d357cf958e.gz --- actions/recoverpassword.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/actions/recoverpassword.php b/actions/recoverpassword.php index edfa9194d..2d38f0908 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; -- cgit v1.2.3-54-g00ecf