Gregniuki commited on
Commit
4c1de62
1 Parent(s): 7e5d74b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -0
main.py CHANGED
@@ -277,6 +277,9 @@ async def password_reset_request(email: str, db: Session = Depends(get_db)):
277
  send_verification_email(email, reset_link)
278
 
279
  return {"message": "Password reset link sent if the email is registered with us."}
 
 
 
280
 
281
  @app.post("/reset-password")
282
  async def reset_password(token: str, new_password: str, db: Session = Depends(get_db)):
 
277
  send_verification_email(email, reset_link)
278
 
279
  return {"message": "Password reset link sent if the email is registered with us."}
280
+ @app.get("/password-reset-request", response_class=HTMLResponse)
281
+ async def password_reset_form(request: Request):
282
+ return templates.TemplateResponse("password_reset_request.html", {"request": request})
283
 
284
  @app.post("/reset-password")
285
  async def reset_password(token: str, new_password: str, db: Session = Depends(get_db)):