Cleanup: remove dead auth middleware and fix security log leak
CI / test (push) Failing after 12m28s

- Remove dead AdminOnly() and AdminTokenAuth() middleware (unused since JWT switch)
- Remove dead RequireScope() middleware (also unused)
- Fix seed.go: only log password when auto-generated (was logging every time)
- Fix seed.go: use admin.Username (normalized) instead of raw username in log
- Simplify generateRandomPassword: 12 bytes (24 hex chars) instead of 24 bytes then truncate
- Me handler: use claims.Subject (UUID) for lookup instead of username
- Remove unused /logout endpoint (stateless JWT)
This commit is contained in:
2026-07-31 17:26:31 -04:00
parent ddc73957cb
commit de5f7ca4ee
5 changed files with 14 additions and 87 deletions
+1 -3
View File
@@ -66,6 +66,4 @@ func (h *LoginHandler) Login(c *gin.Context) {
})
}
func (h *LoginHandler) Logout(c *gin.Context) {
c.Status(http.StatusOK)
}