Add admin password reset functionality for users and customers
This commit is contained in:
@@ -37,6 +37,11 @@ type UpdateStatusForm struct {
|
||||
Reason string `json:"reason" valid:"required,length(10|500)" example:"Customer is active"`
|
||||
}
|
||||
|
||||
// AdminResetPasswordResponse is returned when an admin resets a customer's password.
|
||||
type AdminResetPasswordResponse struct {
|
||||
Password string `json:"password"`
|
||||
}
|
||||
|
||||
// ListCustomersForm represents the form for listing customers with filters
|
||||
type SearchCustomersForm struct {
|
||||
Search *string `query:"q" valid:"optional"`
|
||||
|
||||
Reference in New Issue
Block a user