Commit 55c8d954 authored by liuyuzhen's avatar liuyuzhen

密码长度为题

parent c0b0b78d
...@@ -402,8 +402,8 @@ class MemberModel extends \DAO\AbstractModel ...@@ -402,8 +402,8 @@ class MemberModel extends \DAO\AbstractModel
public function checkChangedInfo($where) public function checkChangedInfo($where)
{ {
$this->checkRegisterMobile($where); $this->checkRegisterMobile($where);
if (!\Our\Validate::checkPassword($where['password'])) { if (!\Our\Validate::checkPasswordLen($where['password'])) {
\Error\ErrorModel::throwException(\Error\CodeConfigModel::passwordLimit); \Error\ErrorModel::throwException(\Error\CodeConfigModel::passwordLenLimit);
} }
} }
...@@ -495,8 +495,8 @@ class MemberModel extends \DAO\AbstractModel ...@@ -495,8 +495,8 @@ class MemberModel extends \DAO\AbstractModel
*/ */
public function checkWxBindMobile($where){ public function checkWxBindMobile($where){
$this->checkWxBindMobileCommon($where); $this->checkWxBindMobileCommon($where);
if (!\Our\Validate::checkPassword($where['password'])) { if (!\Our\Validate::checkPasswordLen($where['password'])) {
\Error\ErrorModel::throwException(\Error\CodeConfigModel::passwordLimit); \Error\ErrorModel::throwException(\Error\CodeConfigModel::passwordLenLimit);
} }
} }
...@@ -509,8 +509,8 @@ class MemberModel extends \DAO\AbstractModel ...@@ -509,8 +509,8 @@ class MemberModel extends \DAO\AbstractModel
if ($data['password'] != $data['rePassword']) { if ($data['password'] != $data['rePassword']) {
\Error\ErrorModel::throwException(\Error\CodeConfigModel::differentPasswordAndRepassword); \Error\ErrorModel::throwException(\Error\CodeConfigModel::differentPasswordAndRepassword);
} }
if (!\Our\Validate::checkPassword($data['password'])) { if (!\Our\Validate::checkPasswordLen($data['password'])) {
\Error\ErrorModel::throwException(\Error\CodeConfigModel::passwordLimit); \Error\ErrorModel::throwException(\Error\CodeConfigModel::passwordLenLimit);
} }
} }
...@@ -687,8 +687,8 @@ class MemberModel extends \DAO\AbstractModel ...@@ -687,8 +687,8 @@ class MemberModel extends \DAO\AbstractModel
} }
} }
public function validPassword($where){ public function validPassword($where){
if (!\Our\Validate::checkPassword($where['password'])) { if (!\Our\Validate::checkPasswordLen($where['password'])) {
\Error\ErrorModel::throwException(\Error\CodeConfigModel::passwordLimit); \Error\ErrorModel::throwException(\Error\CodeConfigModel::passwordLenLimit);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment