feat: hash user password and update by username
This commit is contained in:
@@ -45,7 +45,8 @@ type FindByUsernameResponse struct {
|
||||
}
|
||||
|
||||
type ChangePasswordRequest struct {
|
||||
ID uint `json:"id"`
|
||||
Username string `json:"username"`
|
||||
OldPassword string `json:"old_password"`
|
||||
NewPassword string `json:"new_password"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user