Make email validation less strict
This commit is contained in:
@ -40,4 +40,4 @@ class FromAccount(BaseModel):
|
||||
raise ValueError(f'Ebanking name is different from account name')
|
||||
return self
|
||||
phone_number: str = Field(..., min_length=8)
|
||||
email: EmailStr #TODO change ?
|
||||
email: str = Field(min_length=5)
|
@ -24,7 +24,7 @@ class FromProfile(BaseModel):
|
||||
|
||||
# Contact
|
||||
phone: str = Field(..., min_length=8)
|
||||
email: EmailStr
|
||||
email: str = Field(min_length=5)
|
||||
address: str
|
||||
|
||||
# Personal info
|
||||
|
Reference in New Issue
Block a user