Skip to content
Prev Previous commit
Next Next commit
🔒 Receive token as body in reset password (fastapi#34)
  • Loading branch information
tiangolo authored May 29, 2019
commit b4fa418e659dc90d925addf4fe70ba47deda9dd4
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