This commit is contained in:
vladislav 2026-09-10 07:05:28 -04:00
parent 4cd1f597e8
commit ce16d4ea1b
Signed by: Vladislav
GPG Key ID: D97C9E5E4860EE45
3 changed files with 5 additions and 5 deletions

View File

@ -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",

View File

@ -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(...),

View File

@ -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({