removed e164 phone validation

This commit is contained in:
$(pass /github/name)
2024-07-13 00:48:23 +02:00
parent ac037b12e0
commit 05745ec831
2 changed files with 12 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ type User struct {
DateOfBirth time.Time `gorm:"not null" json:"date_of_birth" validate:"required,age"`
CreatedAt time.Time
Salt *string `json:"-"`
Phone string `json:"phone" validate:"omitempty,omitnil,e164"`
Phone string `json:"phone" validate:"omitempty,omitnil"`
Notes *string `json:"notes"`
FirstName string `gorm:"not null" json:"first_name" validate:"required,alphaunicode"`
Password string `json:"password"`