fix(task4): enforce unified password validation rule

This commit is contained in:
Atharv1705
2026-11-17 17:58:20 +05:30
parent c086833163
commit 5f649e3e4c
8 changed files with 264 additions and 29 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ class VendorOut(BaseModel):
class UserCreate(BaseModel):
name: str = Field(..., min_length=1, max_length=150)
email: str = Field(..., min_length=3, max_length=200)
password: str = Field(..., min_length=4, max_length=128)
password: str = Field(..., max_length=128)
role: UserRole
department_id: Optional[int] = None
is_active: bool = True