feat(auth): require changing default admin password (#778)

This commit is contained in:
h44z
2026-11-09 19:57:23 +01:00
committed by GitHub
parent 137286d46b
commit 276f120b60
30 changed files with 641 additions and 90 deletions
@@ -42,6 +42,7 @@ func (e AuditEndpoint) GetName() string {
func (e AuditEndpoint) RegisterRoutes(g *routegroup.Bundle) {
apiGroup := g.Mount("/audit")
apiGroup.Use(e.authenticator.LoggedIn(ScopeAdmin))
apiGroup.Use(e.authenticator.RequireNonDefaultPassword())
apiGroup.HandleFunc("GET /entries", e.handleEntriesGet())
}