This commit is contained in:
@@ -83,7 +83,7 @@ func ValidatePassword(password string) error {
|
||||
|
||||
func ValidatePhone(phone string) error {
|
||||
if phone == "" {
|
||||
return errors.NewBusinessError(errors.ValidationInvalidPhone, "phone is required")
|
||||
return nil
|
||||
}
|
||||
|
||||
if len(phone) > MaxPhoneLength {
|
||||
|
||||
Reference in New Issue
Block a user