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:
@@ -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"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user