From d76d76438739e0bf0a9362033591a15d654e24cd Mon Sep 17 00:00:00 2001 From: "n.nakhostin" Date: Sun, 21 Sep 2025 10:00:16 +0330 Subject: [PATCH] Remove Password Field from UpdateCustomerForm for Enhanced Security - Eliminated the Password field from the UpdateCustomerForm to improve security practices and reduce the risk of exposing sensitive information. - Ensured that the form continues to validate other necessary fields, maintaining the integrity of customer updates. --- internal/customer/form.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/customer/form.go b/internal/customer/form.go index 32686a5..14d4460 100644 --- a/internal/customer/form.go +++ b/internal/customer/form.go @@ -22,7 +22,6 @@ type UpdateCustomerForm struct { Companies []string `json:"companies,omitempty" valid:"optional"` Username string `json:"username" valid:"required,alphanum,length(3|30)" example:"user"` Email string `json:"email" valid:"required,email" example:"user@opplens.com"` - Password string `json:"password" valid:"required,length(8|128)" example:"User!1234"` Phone *string `json:"phone,omitempty" valid:"optional,length(10|20)" example:"+1234567890"` }