diff --git a/internal/handler/auth_handler.go b/internal/handler/auth_handler.go index 3aaa1a4..98307a8 100644 --- a/internal/handler/auth_handler.go +++ b/internal/handler/auth_handler.go @@ -122,7 +122,7 @@ func (h *AuthHandler) GetCurrentUser(c *gin.Context) { } type UpdatePasswordRequest struct { - OldPassword string `json:"old_password" binding:"required"` + OldPassword string `json:"old_password"` NewPassword string `json:"new_password" binding:"required,min=8"` }