summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlezvous.ca>2008-06-24 18:17:58 -0400
committerEvan Prodromou <evan@controlezvous.ca>2008-06-24 18:17:58 -0400
commitd3679822530e351894ca1f809c97638873832a74 (patch)
tree9b040032cfcc6029d03745f8d8bd044f35827eea
parentf374e924f51d50a601bef4beeb138665374485b0 (diff)
correct field name
darcs-hash:20080624221758-34904-8ba5bbf95a2f16e9bfebb2c4dbd4d2d357cf958e.gz
-rw-r--r--actions/recoverpassword.php4
1 files changed, 3 insertions, 1 deletions
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;