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.
This commit is contained in:
n.nakhostin
2025-09-21 10:00:16 +03:30
parent 19cd346b1c
commit d76d764387
-1
View File
@@ -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"`
}