summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;