Commit 1b5819a4 authored by zhouxudong's avatar zhouxudong

去掉重复验证

parent b01f6e32
...@@ -23,7 +23,6 @@ import javax.validation.constraints.Size; ...@@ -23,7 +23,6 @@ import javax.validation.constraints.Size;
public class ForgetVo { public class ForgetVo {
@NotEmpty(message = "密码不能为空") @NotEmpty(message = "密码不能为空")
@Size(min = 6,max = 20,message = "密码长度需要在6到20之间")
@Pattern(regexp = "^[a-zA-Z0-9~!@#$%^&*()_+?.]{6,20}$", message = "密码长度必须大于等于6位,小于等于20") @Pattern(regexp = "^[a-zA-Z0-9~!@#$%^&*()_+?.]{6,20}$", message = "密码长度必须大于等于6位,小于等于20")
@ApiModelProperty(value = "密码",required = true) @ApiModelProperty(value = "密码",required = true)
private String password; private String password;
......
...@@ -34,7 +34,6 @@ public class LoginVo { ...@@ -34,7 +34,6 @@ public class LoginVo {
private String phone; private String phone;
@NotEmpty(message = "密码不能为空") @NotEmpty(message = "密码不能为空")
@Size(min = 6,max = 20,message = "密码长度需要在6到20之间")
@Pattern(regexp = "^[a-zA-Z0-9~!@#$%^&*()_+?.]{6,20}$", message = "密码长度必须大于等于6位,小于等于20") @Pattern(regexp = "^[a-zA-Z0-9~!@#$%^&*()_+?.]{6,20}$", message = "密码长度必须大于等于6位,小于等于20")
// @Pattern(regexp = "^(?=.*[a-zA-Z])(?=.*\\\\d)(?=.*[@$!%*#?&])[A-Za-z\\\\d@$!%*#?&]{6,20}$", message = "密码长度必须大于等于6位,小于等于20") // @Pattern(regexp = "^(?=.*[a-zA-Z])(?=.*\\\\d)(?=.*[@$!%*#?&])[A-Za-z\\\\d@$!%*#?&]{6,20}$", message = "密码长度必须大于等于6位,小于等于20")
@ApiModelProperty(value = "密码",required = true) @ApiModelProperty(value = "密码",required = true)
......
...@@ -23,7 +23,6 @@ import javax.validation.constraints.Size; ...@@ -23,7 +23,6 @@ import javax.validation.constraints.Size;
public class RegisterVo { public class RegisterVo {
@NotEmpty(message = "密码不能为空") @NotEmpty(message = "密码不能为空")
@Size(min = 6,max = 20,message = "密码长度需要在6到20之间")
@Pattern(regexp = "^[a-zA-Z0-9~!@#$%^&*()_+?.]{6,20}$", message = "密码长度必须大于等于6位,小于等于20") @Pattern(regexp = "^[a-zA-Z0-9~!@#$%^&*()_+?.]{6,20}$", message = "密码长度必须大于等于6位,小于等于20")
@ApiModelProperty(value = "密码",required = true) @ApiModelProperty(value = "密码",required = true)
private String password; private String password;
...@@ -36,7 +35,6 @@ public class RegisterVo { ...@@ -36,7 +35,6 @@ public class RegisterVo {
private String code; private String code;
@NotEmpty(message = "密码不能为空") @NotEmpty(message = "密码不能为空")
@Size(min = 6,max = 20,message = "密码长度需要在6到20之间")
@Pattern(regexp = "^[a-zA-Z0-9~!@#$%^&*()_+?.]{6,20}$", message = "密码长度必须大于等于6位,小于等于20") @Pattern(regexp = "^[a-zA-Z0-9~!@#$%^&*()_+?.]{6,20}$", message = "密码长度必须大于等于6位,小于等于20")
@ApiModelProperty(value = "确认密码",required = true) @ApiModelProperty(value = "确认密码",required = true)
private String checkPassword; private String checkPassword;
......
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