Pārlūkot izejas kodu

修复密码输入错误次数变量

RuoYi 3 gadi atpakaļ
vecāks
revīzija
4d21c11acd

+ 1 - 1
ruoyi-auth/src/main/java/com/ruoyi/auth/service/SysPasswordService.java

@@ -60,7 +60,7 @@ public class SysPasswordService
60 60
         if (!matches(user, password))
61 61
         {
62 62
             retryCount = retryCount + 1;
63
-            recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, String.format("密码输入错误%s次", maxRetryCount));
63
+            recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, String.format("密码输入错误%s次", retryCount));
64 64
             redisService.setCacheObject(getCacheKey(username), retryCount, lockTime, TimeUnit.MINUTES);
65 65
             throw new ServiceException("用户不存在/密码错误");
66 66
         }