Skip to content

Commit

Permalink
🔒 Receive token as body in reset password (fastapi#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo authored May 29, 2019
1 parent 600491e commit d13945b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def recover_password(email: str, db: Session = Depends(get_db)):


@router.post("/reset-password/", tags=["login"], response_model=Msg)
def reset_password(token: str, new_password: str = Body(...), db: Session = Depends(get_db)):
def reset_password(token: str = Body(...), new_password: str = Body(...), db: Session = Depends(get_db)):
"""
Reset password
"""
Expand Down

0 comments on commit d13945b

Please sign in to comment.