mirror of
https://github.com/idrainformatica/PecFlow.git
synced 2026-06-16 12:45:42 +02:00
Cambio nome
This commit is contained in:
@@ -26,7 +26,7 @@ class TenantCreateRequest(BaseModel):
|
||||
@field_validator("slug")
|
||||
@classmethod
|
||||
def validate_slug(cls, v: str) -> str:
|
||||
reserved = {"api", "admin", "www", "mail", "smtp", "imap", "pecflow", "app"}
|
||||
reserved = {"api", "admin", "www", "mail", "smtp", "imap", "pechub", "app"}
|
||||
if v in reserved:
|
||||
raise ValueError(f"Slug '{v}' riservato")
|
||||
return v.lower()
|
||||
|
||||
Reference in New Issue
Block a user