Replaced one-pager with multiple pages and fixed security bugs

This commit is contained in:
Jan Meinl
2026-05-16 21:10:55 +02:00
parent 802906f9d4
commit 68034dea7d
25 changed files with 2311 additions and 1217 deletions
+8
View File
@@ -88,5 +88,13 @@ func migrate() error {
return err
}
}
// Idempotent column additions for older databases.
addColumns := []string{
`ALTER TABLE users ADD COLUMN must_change_password INTEGER NOT NULL DEFAULT 0`,
}
for _, s := range addColumns {
// Ignore "duplicate column" errors so the migration is idempotent.
_, _ = db.Exec(s)
}
return nil
}