feat: hash user password and update by username

This commit is contained in:
Leon
2025-12-05 13:10:19 +08:00
parent f7389ff778
commit df30d7b549
2 changed files with 15 additions and 3 deletions

View File

@@ -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"`
}