feat(system): add admin password reset with session revocation

Let system administrators reset another user's local password from the settings UI, revoke all active sessions, and record the action in the audit log.
This commit is contained in:
wizardchen
2026-07-13 20:05:08 +08:00
committed by lyingbug
parent 8554c422dc
commit 8ec65941a5
17 changed files with 1340 additions and 59 deletions
+1
View File
@@ -875,6 +875,7 @@ func RegisterSystemAdminRoutes(
adminRoutes.POST("/promote", handler.PromoteUserToSystemAdmin)
adminRoutes.POST("/revoke", handler.RevokeSystemAdmin)
adminRoutes.GET("/list", handler.ListSystemAdmins)
adminRoutes.POST("/users/reset-password", handler.ResetUserPassword)
// P1: platform-wide system settings (DB-backed runtime tunables).
// Reads return raw model rows / arrays (no `gin.H{"data":...}`