1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| package cn.stylefeng.roses.kernel.auth.api.expander;
|
| import cn.stylefeng.roses.kernel.config.api.context.ConfigContext;
|
| /**
| * 登录相关配置快速获取
| *
| * @author xixiaowei
| * @date 2022/1/24 15:47
| */
| public class LoginConfigExpander {
|
| /**
| * 获取帐号错误次数校验开关
| *
| * @author xixiaowei
| * @date 2022/1/24 15:48
| */
| public static boolean getAccountErrorDetectionFlag() {
| return ConfigContext.me().getSysConfigValueWithDefault("ACCOUNT_ERROR_DETECTION", Boolean.class, false);
| }
| }
|
|