Browse Source

修改 密码复杂度相关

刘桂岩 4 years ago
parent
commit
4ca60a837b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/inter/controller/Doctors.php

+ 1 - 1
application/inter/controller/Doctors.php

@@ -90,7 +90,7 @@ class Doctors extends Base
             $metch = $this->pregPassword($_REQUEST['newpass']);
             if($metch !== 1)
             {
-                $this->throwError('密码最低8位并且必须满足大小写字母带数字与字符',0035);
+                return json_encode(['code'=>'1021','status'=>'fail','msg'=>'密码最低8位并且必须满足大小写字母带数字与字符']);
             }
             if(md5($password) != $dinfo['password']){
                 return json_encode(['code'=>'1021','status'=>'fail','msg'=>'输入的密码错误']);