@@ -27,7 +27,8 @@ public class ValidationUtils {
private static final Pattern PATTERN_EMAIL = Pattern.compile(
"^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@"
- + "[A-Za-z0-9]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$"
+ + "[A-Za-z0-9][A-Za-z0-9-]*(?:\\.[A-Za-z0-9-]+)*"
+ + "(?:\\.[A-Za-z]{2,})$"
);
@@ -132,6 +132,7 @@ public class MdeAuthServiceImpl implements MdeAuthService {
throw exception(MDE_USER_NOT_EXISTS);
}
+
protected MdeUserDO check(LoginLogTypeEnum logTypeEnum, String account, String password) {
// 校验账号是否存在
MdeUserDO user = userService.getUserByPhone(account);