Skip to content

Commit d13945b

Browse files
authored
🔒 Receive token as body in reset password (fastapi#34)
1 parent 600491e commit d13945b

File tree

1 file changed

+1
-1
lines changed
  • {{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints

1 file changed

+1
-1
lines changed

{{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/login.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def recover_password(email: str, db: Session = Depends(get_db)):
7474

7575

7676
@router.post("/reset-password/", tags=["login"], response_model=Msg)
77-
def reset_password(token: str, new_password: str = Body(...), db: Session = Depends(get_db)):
77+
def reset_password(token: str = Body(...), new_password: str = Body(...), db: Session = Depends(get_db)):
7878
"""
7979
Reset password
8080
"""

0 commit comments

Comments
 (0)