Skip to content

Commit

Permalink
🔒 Receive token as body in reset password (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo authored May 29, 2019
1 parent a612765 commit b4fa418
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 b4fa418

Please sign in to comment.