This commit is contained in:
vladislav 2026-09-10 06:43:27 -04:00
parent b0fbde1ad4
commit a2deeb3fd9
Signed by: Vladislav
GPG Key ID: D97C9E5E4860EE45
2 changed files with 2 additions and 2 deletions

View File

@ -1985,7 +1985,7 @@
" {\"$set\": {\"hashed_password\": hashed_password}}\n", " {\"$set\": {\"hashed_password\": hashed_password}}\n",
" )\n", " )\n",
" \n", " \n",
" return {\"ok\": True, \"message\": \"Пароль успешно изменён\", \"next\": token_data.get('next', '/profile')}\n", " return {\"ok\": True, \"message\": \"Пароль успешно изменён\", \"next\": '/profile'}\n",
"\n", "\n",
"\n", "\n",
"@router.post(\"/api/reset-password\")\n", "@router.post(\"/api/reset-password\")\n",

View File

@ -1502,7 +1502,7 @@ async def reset_password_user(
{"$set": {"hashed_password": hashed_password}} {"$set": {"hashed_password": hashed_password}}
) )
return {"ok": True, "message": "Пароль успешно изменён", "next": token_data.get('next', '/profile')} return {"ok": True, "message": "Пароль успешно изменён", "next": '/profile'}
@router.post("/api/reset-password") @router.post("/api/reset-password")