update m2pool 用户修改密码,注册 密码正则验证修改

This commit is contained in:
yyb
2026-01-08 16:20:42 +08:00
parent 5f6524b15e
commit 0e0b1a6cfd

View File

@@ -57,7 +57,7 @@ public class SysLoginService {
private RedisService redisService;
//public static String PWD_REGEX="^(?![A-Za-z0-9]+$)(?![a-z0-9\\W]+$)(?![A-Za-z\\W]+$)(?![A-Z0-9\\W]+$)[a-zA-Z0-9\\W]{8,32}$";
public static String PWD_REGEX="^(?=.*[A-Z])(?=.*[a-z])(?=.*\\d)(?=.*[!@#$%^&*()./_])[A-Za-z\\d!@#$%^&*()./_]{8,32}$";
public static String PWD_REGEX="^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\\W_])(?!.*[\\u4e00-\\u9fa5])(?!.*\\s).{8,32}$";
public static String EMAIL_REGEX="^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$";
/**