From 98bf745f1b4bb258a8477ba230b202636db20fc3 Mon Sep 17 00:00:00 2001 From: AzenKain Date: Thu, 23 Apr 2026 15:57:32 +0700 Subject: [PATCH] UPDATE: Change some thing --- internal/dtos/request/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/dtos/request/user.go b/internal/dtos/request/user.go index 508442f..60f9342 100644 --- a/internal/dtos/request/user.go +++ b/internal/dtos/request/user.go @@ -14,7 +14,7 @@ type UpdateProfileDto struct { } type ChangePasswordDto struct { - OldPassword string `json:"old_password" validate:"required,min=8,max=64"` + OldPassword string `json:"old_password" validate:"omitempty,min=8,max=64"` NewPassword string `json:"new_password" validate:"required,min=8,max=64,nefield=OldPassword"` }