feat: add retry times and backup users

This commit is contained in:
engigu
2026-02-28 14:44:32 +08:00
parent 06cdc58a72
commit 69cb727b87
15 changed files with 175 additions and 46 deletions
+5 -1
View File
@@ -33,6 +33,7 @@ const (
SectionSite = "site"
SectionSystem = "system"
SectionScheduler = "scheduler"
SectionSecurity = "security"
// Site Settings Key 常量
KeyTitle = "title"
@@ -42,6 +43,9 @@ const (
KeyCookieDays = "cookie_days"
KeyApiToken = "api_token"
// Security Settings Key 常量
KeySecret = "secret"
// System Settings Key 常量
KeyInitialized = "initialized"
@@ -91,7 +95,7 @@ const (
// TablePrefix 表前缀,从配置文件读取
var TablePrefix string
// Secret JWT和密码salt密钥,从配置文件读取
// Secret JWT和密码salt密钥,运行中自动从数据库加载
var Secret string
// DemoMode 演示模式,从环境变量读取