feat: return initial admin password from install flow

This commit is contained in:
line-6000
2026-06-29 13:58:16 +08:00
parent 15de0e6940
commit 7d09adff20
10 changed files with 533 additions and 174 deletions
+6
View File
@@ -14,6 +14,12 @@ import (
var once sync.Once
// ResetMdbTableInitForTest resets the install/startup migration guard so tests
// can exercise fresh temporary databases in the same process.
func ResetMdbTableInitForTest() {
once = sync.Once{}
}
// MdbTableInit performs AutoMigrate for all primary DB tables and seeds
// the minimum static rows: chains, chain tokens, default settings, and
// a Telegram notification channel migrated from legacy settings keys.