Skip to content

Commit cbd9139

Browse files
lint: fix linting error
1 parent 83f6d29 commit cbd9139

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

backend/app/api/routes/login.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,12 @@ def reset_password(session: SessionDep, body: NewPassword) -> Message:
9090
)
9191
if not user.is_active:
9292
raise HTTPException(status_code=400, detail="Inactive user")
93-
93+
94+
user_in_update = UserUpdate(password=body.new_password)
9495
crud.update_user(
9596
session=session,
9697
db_user=user,
97-
user_in={"password": body.new_password},
98+
user_in=user_in_update,
9899
)
99100
return Message(message="Password updated successfully")
100101

0 commit comments

Comments
 (0)