perf: 配置文件调整
This commit is contained in:
@@ -127,9 +127,6 @@ func (s Account) passwordRetryCount(userName string) (string, int64, time.Durati
|
||||
// 验证登录次数和错误锁定时间
|
||||
maxRetryCount := parse.Number(maxRetryCountStr)
|
||||
lockTime := parse.Number(lockTimeStr)
|
||||
// 验证登录次数和错误锁定时间
|
||||
// maxRetryCount := config.Get("user.password.maxRetryCount").(int)
|
||||
// lockTime := config.Get("user.password.lockTime").(int)
|
||||
|
||||
// 验证缓存记录次数
|
||||
retryKey := fmt.Sprintf("%s:%s", constants.CACHE_PWD_ERR_COUNT, userName)
|
||||
|
||||
@@ -39,9 +39,9 @@ func (s *Commont) SystemConfigInfo() map[string]string {
|
||||
infoMap[constants.LAUNCH_BOOTLOADER] = "true"
|
||||
}
|
||||
// 用户登录认证
|
||||
infoMap["loginAuth"] = fmt.Sprint(config.Get("user.loginAuth"))
|
||||
infoMap["loginAuth"] = fmt.Sprint(config.Get("serverLoginAuth"))
|
||||
// 用户接口加密
|
||||
infoMap["cryptoApi"] = fmt.Sprint(config.Get("user.cryptoApi"))
|
||||
infoMap["cryptoApi"] = fmt.Sprint(config.Get("serverCryptoApi"))
|
||||
// 序列号
|
||||
infoMap["serialNum"] = fmt.Sprint(config.Get("omc.sn"))
|
||||
// 获取LOGO类型
|
||||
|
||||
Reference in New Issue
Block a user