From 57eea78f9841586d4d21e38537b5dddd6829f682 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 05 十一月 2025 15:15:58 +0800
Subject: [PATCH] Merge branch 'wuhuyancao' of http://139.186.142.91:10010/r/productDev/dmvisit into wuhuyancao

---
 server/system_service/src/main/java/com/doumee/core/utils/PasswordGenerator.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/system_service/src/main/java/com/doumee/core/utils/PasswordGenerator.java b/server/system_service/src/main/java/com/doumee/core/utils/PasswordGenerator.java
index 484a040..8afedfd 100644
--- a/server/system_service/src/main/java/com/doumee/core/utils/PasswordGenerator.java
+++ b/server/system_service/src/main/java/com/doumee/core/utils/PasswordGenerator.java
@@ -25,7 +25,7 @@
     public static void getPasswordTypeCount(String password){
         Set<Integer> typeCount = new HashSet<>(4);
         for (int i = 0; i < password.length(); i++) {
-            String key = password.substring(0,i);
+            String key = password.substring(i,i+1);
             if(LOWER.indexOf(key)>=Constants.ZERO){
                 typeCount.add(Constants.ZERO);
             }else if(UPPER.indexOf(key)>=Constants.ZERO){

--
Gitblit v1.9.3