Revert "feat: configure Kanban login by operator email"
All checks were successful
Build and deploy / Validate source (push) Successful in 12s
Build and deploy / Publish images and notify Portainer (push) Successful in 54s

This reverts commit 508fa03664.
This commit is contained in:
Cauê Faleiros
2026-09-18 13:45:08 -03:00
parent 508fa03664
commit d4190ebfeb
14 changed files with 48 additions and 59 deletions

View File

@@ -88,17 +88,9 @@ class Login(StrictModel):
password: str = Field(min_length=1, max_length=128)
class OperatorLogin(StrictModel):
email: str = Field(min_length=3, max_length=254)
username: str = Field(min_length=1, max_length=100)
password: str = Field(min_length=1, max_length=128)
@field_validator('email')
@classmethod
def operator_email_valid(cls, value):
value = value.strip().lower()
if not re.fullmatch(r'[^\s@]+@[^\s@]+\.[a-zA-Z]{2,}', value):
raise ValueError('Invalid email')
return value
class FileReference(StrictModel):
upload_id: UUID
item_index: int = Field(ge=0, strict=True)