Skip to content

Commit

Permalink
lint: fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
youneshenniwrites committed Dec 3, 2024
1 parent 83f6d29 commit cbd9139
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/app/api/routes/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,12 @@ def reset_password(session: SessionDep, body: NewPassword) -> Message:
)
if not user.is_active:
raise HTTPException(status_code=400, detail="Inactive user")


user_in_update = UserUpdate(password=body.new_password)
crud.update_user(
session=session,
db_user=user,
user_in={"password": body.new_password},
user_in=user_in_update,
)
return Message(message="Password updated successfully")

Expand Down

0 comments on commit cbd9139

Please sign in to comment.