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:
@@ -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":...}`
|
||||
|
||||
Reference in New Issue
Block a user