From 1bd5fdd44010da2b1adb0546b4f4c0f5ab0afa2c Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Sat, 7 Nov 2009 01:40:38 +0000 Subject: [PATCH] * fix the bug. --- trunk/module/user/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/trunk/module/user/model.php b/trunk/module/user/model.php index dd9cf13f05..9657822827 100644 --- a/trunk/module/user/model.php +++ b/trunk/module/user/model.php @@ -55,6 +55,7 @@ class userModel extends model $user = fixer::input('post') ->add('company', (int)$companyID) ->setDefault('join', '0000-00-00') + ->setForce('password', md5($this->post->password)) ->get(); $this->dao->insert(TABLE_USER)->data($user) ->autoCheck()