Gregniuki commited on
Commit
ac6bf4c
1 Parent(s): e0f0067

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -2
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.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})
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")