忘记密码

忘记密码
This commit is contained in:
shimingxy
2020-05-15 17:11:02 +08:00
parent c93b5406b0
commit ad4739fa1b
7 changed files with 126 additions and 4 deletions

View File

@@ -69,14 +69,12 @@ public class ForgotPasswordContorller {
.equals(WebContext.getSession().getAttribute(
WebConstants.KAPTCHA_SESSION_KEY).toString())) {
userInfo = userInfoService.queryUserInfoByEmailMobile(emailMobile);
Matcher matcher = emailRegex.matcher(emailMobile);
Matcher matcher = emailRegex.matcher(emailMobile);
if (matcher.matches() && null != userInfo) {
tfaMailOptAuthn.produce(userInfo);
forgotType = ForgotType.EMAIL;
}
matcher = mobileRegex.matcher(emailMobile);
if (matcher.matches() && null != userInfo) {
}else if (null != userInfo) {
tfaMobileOptAuthn.produce(userInfo);
forgotType = ForgotType.MOBILE;
}