update 用户邮箱限制位126邮箱
This commit is contained in:
@@ -135,6 +135,7 @@ public class SysUser implements Serializable {
|
|||||||
@NotBlank(message = "邮箱不能为空")
|
@NotBlank(message = "邮箱不能为空")
|
||||||
@Size(max = 50,message = "邮箱最长为50字符")
|
@Size(max = 50,message = "邮箱最长为50字符")
|
||||||
@Email(message = "邮箱格式不正确")
|
@Email(message = "邮箱格式不正确")
|
||||||
|
@Pattern(regexp = "^[A-Za-z]\\w{5}@(126\\.com)$",message = "邮箱格式不正确,邮箱应为126邮箱,至少5位")
|
||||||
private String email;
|
private String email;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ spring:
|
|||||||
max-file-size: 50MB
|
max-file-size: 50MB
|
||||||
max-request-size: 50MB
|
max-request-size: 50MB
|
||||||
mail:
|
mail:
|
||||||
host: smtp.mxhichina.com
|
host: smtp.126.com
|
||||||
username: zhangqinlin@syxysoft.com
|
username: zhangqinlin@syxysoft.com
|
||||||
password: Zql0000000
|
password: Zql0000000
|
||||||
port: 25
|
port: 25
|
||||||
|
|||||||
Reference in New Issue
Block a user