Update main.py
Browse files
main.py
CHANGED
@@ -258,9 +258,8 @@ 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})
|
265 |
|
266 |
@app.post("/password-reset-request")
|
|
|
258 |
# Render a template response
|
259 |
return templates.TemplateResponse("protected.html", {"request": request, "user": db_user.username})
|
260 |
|
261 |
+
@app.get("/reset-password")
|
262 |
async def reset_password_get(request: Request, token: str):
|
|
|
263 |
return templates.TemplateResponse("reset-password.html", {"request": request, "token": token})
|
264 |
|
265 |
@app.post("/password-reset-request")
|