rewrite settings

This commit is contained in:
nkanaev
2026-05-18 21:38:39 +01:00
parent 847ec3861a
commit 76529c895e
5 changed files with 285 additions and 61 deletions

View File

@@ -47,12 +47,12 @@ func (m *Middleware) Handler(c *router.Context) {
c.HTML(http.StatusOK, assets.Template("login.html"), map[string]any{
"username": username,
"error": "Invalid username/password",
"settings": m.DB.GetSettings(),
"settings": m.DB.GetSettings().Map(),
})
return
}
}
c.HTML(http.StatusOK, assets.Template("login.html"), map[string]any{
"settings": m.DB.GetSettings(),
"settings": m.DB.GetSettings().Map(),
})
}