fix user tip #I6ARG9

This commit is contained in:
bwcx_jzy 2023-01-29 09:12:55 +08:00
parent a5faf5f863
commit 42f7a4dd2b
No known key found for this signature in database
GPG Key ID: 5E48E9372088B9E5

View File

@ -146,7 +146,7 @@ public class UserListController extends BaseServerController {
int length = id.length();
Assert.state(length <= Const.ID_MAX_LEN && length >= UserModel.USER_NAME_MIN_LEN, "登录名如果为邮箱格式,长度必须" + UserModel.USER_NAME_MIN_LEN + "-" + Const.ID_MAX_LEN);
} else {
Validator.validateGeneral(id, UserModel.USER_NAME_MIN_LEN, Const.ID_MAX_LEN, "登录名不能为空,并且长度必须" + UserModel.USER_NAME_MIN_LEN + "-" + Const.ID_MAX_LEN);
Validator.validateGeneral(id, UserModel.USER_NAME_MIN_LEN, Const.ID_MAX_LEN, "登录名格式不正确(英文字母 、数字和下划线),并且长度必须" + UserModel.USER_NAME_MIN_LEN + "-" + Const.ID_MAX_LEN);
}
Assert.state(!StrUtil.equalsAnyIgnoreCase(id, UserModel.SYSTEM_OCCUPY_NAME, UserModel.SYSTEM_ADMIN), "当前登录名已经被系统占用");