new_set_message

master
tpingzhang 5 years ago
parent fd413dd9a4
commit a50449bc0d

@ -927,7 +927,7 @@ class UserController extends BaseController
}
if(strlen($nickname_len) > 16){
$this -> new_set_message(1027, "fail", "昵称过长");
$this -> new_set_message(1027, "昵称过长");
}
$nk = M('User', 'tab_') -> field('id,account,nickname') -> where(['nickname' => $user['nickname']]) -> find();
if (!empty($nk) && is_array($nk) && $user['user_id'] != $nk['id']) {
@ -937,7 +937,7 @@ class UserController extends BaseController
break;
case 'pwd':
if(!preg_match('/^(?![^a-zA-Z]+$)(?!\D+$).{6,15}$/', $user['password'])){
$this -> new_set_message(1027, "fail", "密码必须6-15位字母和数字组合");
$this -> new_set_message(1027, "密码必须6-15位字母和数字组合");
}
if ($user['old_password'] == $user['password']) {

Loading…
Cancel
Save