修复注册账号问题

This commit is contained in:
TinyAnts 2022-09-13 15:37:40 +08:00
parent 21431d751a
commit 8ea0b037b6
1 changed files with 0 additions and 2 deletions

View File

@ -24,7 +24,6 @@ public class RegParam implements Serializable {
@NotNull(message = "username参数缺失")
@NotEmpty(message = "账号不能为空")
@Length(min = 3, max = 12, message = "账号必须在3~12个字符内")
@Pattern(message = "账号只允许是字母和数字", regexp="^[A-Za-z0-9]+$")
@Pattern(message = "账号应该为3-12位数字、字母组合", regexp="^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{3,12}$")
private String username;
@ -34,7 +33,6 @@ public class RegParam implements Serializable {
private String password;
@NotNull(message = "client参数缺失")
@NotEmpty(message = "客户端不能为空")
@IntegerContains(values = {1, 2, 3, 4, 5, 6}, message = "不是合法客户端")
private Integer client;