We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d94fdb8 commit 798611dCopy full SHA for 798611d
backend/app/app/api/api_v1/endpoints/login.py
@@ -1,6 +1,6 @@
1
from datetime import timedelta
2
3
-from fastapi import APIRouter, Depends, HTTPException
+from fastapi import APIRouter, Body, Depends, HTTPException
4
from fastapi.security import OAuth2PasswordRequestForm
5
from sqlalchemy.orm import Session
6
@@ -75,7 +75,7 @@ def recover_password(email: str, db: Session = Depends(get_db)):
75
76
77
@router.post("/reset-password/", tags=["login"], response_model=Msg)
78
-def reset_password(token: str, new_password: str, db: Session = Depends(get_db)):
+def reset_password(token: str = Body(...), new_password: str = Body(...), db: Session = Depends(get_db)):
79
"""
80
Reset password
81
0 commit comments