Commit a44cbde1 authored by yaobaizheng's avatar yaobaizheng

发送次数 密码正则校验

parent 176783e3
...@@ -24,7 +24,7 @@ public class ForgetVo { ...@@ -24,7 +24,7 @@ public class ForgetVo {
@NotEmpty(message = "密码不能为空") @NotEmpty(message = "密码不能为空")
@Size(min = 6,max = 20,message = "密码长度需要在6到20之间") @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;
......
...@@ -35,7 +35,7 @@ public class LoginVo { ...@@ -35,7 +35,7 @@ public class LoginVo {
@NotEmpty(message = "密码不能为空") @NotEmpty(message = "密码不能为空")
@Size(min = 6,max = 20,message = "密码长度需要在6到20之间") @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)
private String password; private String password;
......
...@@ -24,7 +24,7 @@ public class RegisterVo { ...@@ -24,7 +24,7 @@ public class RegisterVo {
@NotEmpty(message = "密码不能为空") @NotEmpty(message = "密码不能为空")
@Size(min = 6,max = 20,message = "密码长度需要在6到20之间") @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;
@NotEmpty(message = "手机号不能为空") @NotEmpty(message = "手机号不能为空")
...@@ -37,7 +37,7 @@ public class RegisterVo { ...@@ -37,7 +37,7 @@ public class RegisterVo {
@NotEmpty(message = "密码不能为空") @NotEmpty(message = "密码不能为空")
@Size(min = 6,max = 20,message = "密码长度需要在6到20之间") @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