Add admin password reset functionality for users and customers
This commit is contained in:
@@ -79,6 +79,11 @@ type UpdateUserStatusForm struct {
|
||||
Status string `json:"status" valid:"required,in(active|inactive|suspended)"`
|
||||
}
|
||||
|
||||
// AdminResetPasswordResponse is returned when an admin resets another user's password.
|
||||
type AdminResetPasswordResponse struct {
|
||||
Password string `json:"password"`
|
||||
}
|
||||
|
||||
type UpdateUserRoleForm struct {
|
||||
Role string `json:"role" valid:"required,in(admin|manager|operator|viewer)"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user