Fixed password settings so that changed passwords actually work and I can actually change the passwords

This commit is contained in:
NPS Agent
2026-05-11 16:23:05 +09:30
parent df2157b6b9
commit 69588de82c
7 changed files with 110 additions and 16 deletions
+4
View File
@@ -26,6 +26,10 @@ class UserUpdate(BaseModel):
account_type: Optional[str] = None
photo: Optional[str] = None
class PasswordChange(BaseModel):
old_password: str
new_password: str
class User(UserBase):
created_at: datetime
class Config: