enable change password

This commit is contained in:
2026-09-10 09:47:57 +08:00
parent f10915e020
commit c841aa091d
5 changed files with 70 additions and 2 deletions

View File

@@ -92,6 +92,13 @@ class SentenceTextUpdate(BaseModel):
language: Optional[str] = Field(default=None, max_length=32)
class PasswordResetRequest(BaseModel):
model_config = ConfigDict(extra="forbid")
username: str = Field(min_length=3, max_length=50)
password: str = Field(min_length=8, max_length=128)
class SentenceExplanationRequest(BaseModel):
model_config = ConfigDict(extra="forbid")