diff --git a/main.ipynb b/main.ipynb index aca6cc5..ba67a51 100644 --- a/main.ipynb +++ b/main.ipynb @@ -1985,7 +1985,7 @@ " {\"$set\": {\"hashed_password\": hashed_password}}\n", " )\n", " \n", - " return {\"ok\": True, \"message\": \"Пароль успешно изменён\", \"next\": token_data.get('next', '/profile')}\n", + " return {\"ok\": True, \"message\": \"Пароль успешно изменён\", \"next\": '/profile'}\n", "\n", "\n", "@router.post(\"/api/reset-password\")\n", diff --git a/main.py b/main.py index 8f0a914..08ade14 100644 --- a/main.py +++ b/main.py @@ -1502,7 +1502,7 @@ async def reset_password_user( {"$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")