mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-14 12:32:09 +08:00
Update ForgotPasswordContorller.java
Pattern
This commit is contained in:
@@ -52,11 +52,9 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|||||||
public class ForgotPasswordContorller {
|
public class ForgotPasswordContorller {
|
||||||
private static Logger logger = LoggerFactory.getLogger(ForgotPasswordContorller.class);
|
private static Logger logger = LoggerFactory.getLogger(ForgotPasswordContorller.class);
|
||||||
|
|
||||||
Pattern emailRegex = Pattern.compile(
|
static final Pattern emailRegex = Pattern.compile("^\\s*\\w+(?:\\.{0,1}[\\w-]+)*@[a-zA-Z0-9]+(?:[-.][a-zA-Z0-9]+)*\\.[a-zA-Z]+\\s*$");
|
||||||
"^\\s*\\w+(?:\\.{0,1}[\\w-]+)*@[a-zA-Z0-9]+(?:[-.][a-zA-Z0-9]+)*\\.[a-zA-Z]+\\s*$");
|
|
||||||
|
|
||||||
Pattern mobileRegex = Pattern.compile(
|
static final Pattern mobileRegex = Pattern.compile("^[1][3,4,5,6,7,8,9][0-9]{9}$");
|
||||||
"^[1][3,4,5,7,8][0-9]{9}$");
|
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
EmailConfig emailConfig;
|
EmailConfig emailConfig;
|
||||||
|
|||||||
Reference in New Issue
Block a user