Commit f835220a by 冷斌

fix bug

parent cb788ea2
......@@ -2391,17 +2391,17 @@ class Api_User extends PhalApi_Api
// return $rs;
// }
$check = passcheck($user_pass);
if($check==0){
$rs['code'] = 1004;
$rs['msg'] = '密码6-12位数字与字母';
return $rs;
}else if($check==2){
$rs['code'] = 1005;
$rs['msg'] = '密码不能纯数字或纯字母';
return $rs;
}
// $check = passcheck($user_pass);
//
// if($check==0){
// $rs['code'] = 1004;
// $rs['msg'] = '密码6-12位数字与字母';
// return $rs;
// }else if($check==2){
// $rs['code'] = 1005;
// $rs['msg'] = '密码不能纯数字或纯字母';
// return $rs;
// }
DI()->notorm->users->where("id={$uid}")->update([
'user_pass2' => setPass($user_pass),
......
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