fix: update password handling and constraints

This commit is contained in:
ɧσℓσ
2025-12-02 19:42:59 +01:00
parent f75fc23cb1
commit 3f8dc7e6c5
6 changed files with 18 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ from datetime import datetime
class UserCreate(BaseModel):
username: str = Field(..., min_length=3, max_length=50)
email: EmailStr
password: str = Field(..., min_length=6)
password: str = Field(..., min_length=6, max_length=72)
class UserLogin(BaseModel):