Update main.py
Browse files
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)):
|