Update main.py
Browse files
main.py
CHANGED
@@ -258,7 +258,7 @@ async def get_protected(
|
|
258 |
# Render a template response
|
259 |
return templates.TemplateResponse("protected.html", {"request": request, "user": db_user.username})
|
260 |
|
261 |
-
@app.
|
262 |
async def reset_password_get(request: Request, token: str):
|
263 |
# You can add additional validation for the token if necessary
|
264 |
return templates.TemplateResponse("reset-password.html", {"request": request, "token": token})
|
|
|
258 |
# Render a template response
|
259 |
return templates.TemplateResponse("protected.html", {"request": request, "user": db_user.username})
|
260 |
|
261 |
+
@app.post("/reset-password", response_class=HTMLResponse)
|
262 |
async def reset_password_get(request: Request, token: str):
|
263 |
# You can add additional validation for the token if necessary
|
264 |
return templates.TemplateResponse("reset-password.html", {"request": request, "token": token})
|