package cn.stylefeng.roses.kernel.auth.api.expander;

import cn.stylefeng.roses.kernel.config.api.context.ConfigContext;

/**
 * 登录相关配置快速获取
 *
 * @author xixiaowei
 * @since 2022/1/24 15:47
 */
public class LoginConfigExpander {

    /**
     * 获取帐号错误次数校验开关
     *
     * @author xixiaowei
     * @since 2022/1/24 15:48
     */
    public static boolean getAccountErrorDetectionFlag() {
        return ConfigContext.me().getSysConfigValueWithDefault("ACCOUNT_ERROR_DETECTION", Boolean.class, false);
    }
}
