backend issue fix
This commit is contained in:
parent
2451045693
commit
1ee8a58117
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ class OrgMemberCreate(BaseModel):
|
||||||
password: str | None = Field(default=None, min_length=8, max_length=128)
|
password: str | None = Field(default=None, min_length=8, max_length=128)
|
||||||
|
|
||||||
@model_validator(mode="after")
|
@model_validator(mode="after")
|
||||||
def password_required_without_invite(self) -> OrgMemberCreate:
|
def password_required_without_invite(self):
|
||||||
if not self.send_invitation and not self.password:
|
if not self.send_invitation and not self.password:
|
||||||
raise ValueError("Password is required when not sending an invitation.")
|
raise ValueError("Password is required when not sending an invitation.")
|
||||||
return self
|
return self
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue