fix: api_key持久化

This commit is contained in:
TheSmallHanCat
2025-12-12 08:45:58 +08:00
parent 6b81188b6f
commit 5225170d71
4 changed files with 23 additions and 9 deletions

View File

@@ -82,6 +82,7 @@ class AdminConfig(BaseModel):
id: int = 1
admin_username: str # Read from database, initialized from setting.toml on first startup
admin_password: str # Read from database, initialized from setting.toml on first startup
api_key: str # Read from database, initialized from setting.toml on first startup
error_ban_threshold: int = 3
updated_at: Optional[datetime] = None