Преглед на файлове

!817 密码输入错误时,登录日志重复
Merge pull request !817 from 也曾为你像超人/N/A

若依 преди 1 година
родител
ревизия
e719ac8cff
променени са 1 файла, в които са добавени 0 реда и са изтрити 4 реда
  1. 0 4
      ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysPasswordService.java

+ 0 - 4
ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysPasswordService.java

@@ -60,16 +60,12 @@ public class SysPasswordService
 
         if (retryCount >= Integer.valueOf(maxRetryCount).intValue())
         {
-            AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL,
-                    MessageUtils.message("user.password.retry.limit.exceed", maxRetryCount, lockTime)));
             throw new UserPasswordRetryLimitExceedException(maxRetryCount, lockTime);
         }
 
         if (!matches(user, password))
         {
             retryCount = retryCount + 1;
-            AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL,
-                    MessageUtils.message("user.password.retry.limit.count", retryCount)));
             redisCache.setCacheObject(getCacheKey(username), retryCount, lockTime, TimeUnit.MINUTES);
             throw new UserPasswordNotMatchException();
         }