fix: use JSON body for login instead of form data

This commit is contained in:
shokollm
2026-04-10 08:09:42 +00:00
parent 937cc2da60
commit c6baadf8b8
2 changed files with 10 additions and 4 deletions

View File

@@ -8,6 +8,11 @@ class UserCreate(BaseModel):
password: str
class LoginRequest(BaseModel):
username: EmailStr
password: str
class UserResponse(BaseModel):
id: str
email: str