From d096a5dde3d9ea4e5104f23c106aead18252d564 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 14 Apr 2015 09:52:41 +0800 Subject: [PATCH] * fix a bug #692. --- module/user/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/user/model.php b/module/user/model.php index cd6554dcfd..dda2e60f2e 100644 --- a/module/user/model.php +++ b/module/user/model.php @@ -420,6 +420,7 @@ class userModel extends model */ public function checkPassword() { + if(empty($this->post->password1)) dao::$errors['password'][] = sprintf($this->lang->error->notempty, $this->lang->user->password); if($this->post->password1 != false) { if($this->post->password1 != $this->post->password2) dao::$errors['password'][] = $this->lang->error->passwordsame;