Gregniuki commited on
Commit
576d38f
1 Parent(s): b48c471

Update main.py

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