From ce16d4ea1bd77a5011d8c7db28509764b9136d19dd7697f41a72bdcb2bc1fffa Mon Sep 17 00:00:00 2001 From: vladislav Date: Thu, 10 Sep 2026 07:05:28 -0400 Subject: [PATCH] fix --- main.ipynb | 4 ++-- main.py | 4 ++-- templates/profile/password.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/main.ipynb b/main.ipynb index d8ff95b..866947a 100644 --- a/main.ipynb +++ b/main.ipynb @@ -1951,8 +1951,8 @@ " )\n", "\n", "\n", - "@app.post(\"/api/v2/reset-password\")\n", - "async def reset_password_user(\n", + "@app.post(\"/api/reset-hash-password\")\n", + "async def reset_hash_password_user(\n", " request: Request,\n", " response: Response,\n", " data: ResetPasswordRequest = Body(...),\n", diff --git a/main.py b/main.py index bec8fe1..af6af1e 100644 --- a/main.py +++ b/main.py @@ -1468,8 +1468,8 @@ async def restore_page(request: Request, token: str): ) -@app.post("/api/v2/reset-password") -async def reset_password_user( +@app.post("/api/reset-hash-password") +async def reset_hash_password_user( request: Request, response: Response, data: ResetPasswordRequest = Body(...), diff --git a/templates/profile/password.html b/templates/profile/password.html index e1814be..f00c050 100644 --- a/templates/profile/password.html +++ b/templates/profile/password.html @@ -111,7 +111,7 @@ async function getSHA256Hash(message) { } const hash = await getSHA256Hash(newPass); try { - const res = await fetch('/api/v2/reset-password', { + const res = await fetch('/api/reset-hash-password', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({