|
|
@ -1,5 +1,6 @@
|
|
|
|
package com.glxp.sale.admin.req.auth;
|
|
|
|
package com.glxp.sale.admin.req.auth;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.glxp.sale.admin.constant.Constant;
|
|
|
|
import lombok.Data;
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.validation.constraints.NotEmpty;
|
|
|
|
import javax.validation.constraints.NotEmpty;
|
|
|
@ -9,13 +10,13 @@ import javax.validation.constraints.Pattern;
|
|
|
|
public class ResetPasswdRequest {
|
|
|
|
public class ResetPasswdRequest {
|
|
|
|
|
|
|
|
|
|
|
|
@NotEmpty(message = "密码不能为空")
|
|
|
|
@NotEmpty(message = "密码不能为空")
|
|
|
|
@Pattern(regexp = "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\\\W_.*%@!]+$)(?![a-z0-9]+$)(?![a-z\\\\W_.;*%@!]+$)(?![0-9\\\\W_.;*%@!]+$)[a-zA-Z0-9\\\\W_.;*%@!]{8,20}$"
|
|
|
|
@Pattern(regexp = Constant.passwordReg
|
|
|
|
, message = "密码需要包含大写字母、小写字符、数字、特殊字符(含_.*%@!)其中任意三种,长度8-20位")
|
|
|
|
, message = "密码需要包含大写字母、小写字符、数字、特殊字符(含_.*%@!)其中任意三种,长度8-20位")
|
|
|
|
private String password;
|
|
|
|
private String password;
|
|
|
|
@NotEmpty(message = "手机号不能为空")
|
|
|
|
@NotEmpty(message = "手机号不能为空")
|
|
|
|
private String mobile;
|
|
|
|
private String mobile;
|
|
|
|
@NotEmpty(message = "确认密码不能为空")
|
|
|
|
@NotEmpty(message = "确认密码不能为空")
|
|
|
|
@Pattern(regexp = "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\\\W_.*%@!]+$)(?![a-z0-9]+$)(?![a-z\\\\W_.;*%@!]+$)(?![0-9\\\\W_.;*%@!]+$)[a-zA-Z0-9\\\\W_.;*%@!]{8,20}$"
|
|
|
|
@Pattern(regexp = Constant.passwordReg
|
|
|
|
, message = "密码需要包含大写字母、小写字符、数字、特殊字符(含_.*%@!)其中任意三种,长度8-20位")
|
|
|
|
, message = "密码需要包含大写字母、小写字符、数字、特殊字符(含_.*%@!)其中任意三种,长度8-20位")
|
|
|
|
private String confirmPassword;
|
|
|
|
private String confirmPassword;
|
|
|
|
@NotEmpty(message = "验证码不能为空")
|
|
|
|
@NotEmpty(message = "验证码不能为空")
|
|
|
|