Ver código fonte

!233 密码变量命名风格统一
Merge pull request !233 from taest/N/A

若依 3 anos atrás
pai
commit
2af8e817bd

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

@@ -21,9 +21,9 @@ public class SysPasswordService
21 21
     @Autowired
22 22
     private RedisService redisService;
23 23
 
24
-    private int maxRetryCount = CacheConstants.passwordMaxRetryCount;
24
+    private int maxRetryCount = CacheConstants.PASSWORD_MAX_RETRY_COUNT;
25 25
 
26
-    private Long lockTime = CacheConstants.passwordLockTime;
26
+    private Long lockTime = CacheConstants.PASSWORD_LOCK_TIME;
27 27
 
28 28
     @Autowired
29 29
     private SysRecordLogService recordLogService;

+ 2 - 2
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java

@@ -20,12 +20,12 @@ public class CacheConstants
20 20
     /**
21 21
      * 密码最大错误次数
22 22
      */
23
-    public final static int passwordMaxRetryCount = 5;
23
+    public final static int PASSWORD_MAX_RETRY_COUNT = 5;
24 24
 
25 25
     /**
26 26
      * 密码锁定时间,默认10(分钟)
27 27
      */
28
-    public final static long passwordLockTime = 10;
28
+    public final static long PASSWORD_LOCK_TIME = 10;
29 29
 
30 30
     /**
31 31
      * 权限缓存前缀