From ff8206323dc1b88c9373a3ee5cf5cb8e86ef60d0 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期六, 30 七月 2022 14:00:32 +0800 Subject: [PATCH] 支持配置密码最大错误次数/锁定时间 --- src/main/java/com/ruoyi/common/constant/Constants.java | 44 ++++++++++++-------------------------------- 1 files changed, 12 insertions(+), 32 deletions(-) diff --git a/src/main/java/com/ruoyi/common/constant/Constants.java b/src/main/java/com/ruoyi/common/constant/Constants.java index 20429f8..2dbdbe6 100644 --- a/src/main/java/com/ruoyi/common/constant/Constants.java +++ b/src/main/java/com/ruoyi/common/constant/Constants.java @@ -58,27 +58,7 @@ * 鐧诲綍澶辫触 */ public static final String LOGIN_FAIL = "Error"; - - /** - * 楠岃瘉鐮� redis key - */ - public static final String CAPTCHA_CODE_KEY = "captcha_codes:"; - - /** - * 鐧诲綍鐢ㄦ埛 redis key - */ - public static final String LOGIN_TOKEN_KEY = "login_tokens:"; - - /** - * 闃查噸鎻愪氦 redis key - */ - public static final String REPEAT_SUBMIT_KEY = "repeat_submit:"; - - /** - * 闄愭祦 redis key - */ - public static final String RATE_LIMIT_KEY = "rate_limit:"; - + /** * 楠岃瘉鐮佹湁鏁堟湡锛堝垎閽燂級 */ @@ -125,16 +105,6 @@ public static final String JWT_AUTHORITIES = "authorities"; /** - * 鍙傛暟绠$悊 cache key - */ - public static final String SYS_CONFIG_KEY = "sys_config:"; - - /** - * 瀛楀吀绠$悊 cache key - */ - public static final String SYS_DICT_KEY = "sys_dict:"; - - /** * 璧勬簮鏄犲皠璺緞 鍓嶇紑 */ public static final String RESOURCE_PREFIX = "/profile"; @@ -150,8 +120,18 @@ public static final String LOOKUP_LDAP = "ldap:"; /** + * LDAPS 杩滅▼鏂规硶璋冪敤 + */ + public static final String LOOKUP_LDAPS = "ldaps:"; + + /** + * 瀹氭椂浠诲姟鐧藉悕鍗曢厤缃紙浠呭厑璁歌闂殑鍖呭悕锛屽鍏朵粬闇�瑕佸彲浠ヨ嚜琛屾坊鍔狅級 + */ + public static final String[] JOB_WHITELIST_STR = { "com.ruoyi" }; + + /** * 瀹氭椂浠诲姟杩濊鐨勫瓧绗� */ public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml", - "org.springframework" }; + "org.springframework", "org.apache", "com.ruoyi.common.utils.file" }; } -- Gitblit v1.9.3