perf: 配置文件调整

This commit is contained in:
TsMask
2025-03-17 19:21:52 +08:00
parent c20a3e5f04
commit a27e1d243c
9 changed files with 21 additions and 54 deletions

View File

@@ -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)