RuoYi
2022-08-01 347a717d5c7afa873fff71009322e7d6c6ad38c7
ruoyi-auth/src/main/java/com/ruoyi/auth/service/SysPasswordService.java
@@ -60,7 +60,7 @@
        if (!matches(user, password))
        {
            retryCount = retryCount + 1;
            recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, String.format("密码输入错误%s次", maxRetryCount));
            recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, String.format("密码输入错误%s次", retryCount));
            redisService.setCacheObject(getCacheKey(username), retryCount, lockTime, TimeUnit.MINUTES);
            throw new ServiceException("用户不存在/密码错误");
        }