From ca10fdb37ba52658b6f5973a500dc3355fb9bf98 Mon Sep 17 00:00:00 2001 From: kompotkot Date: Tue, 18 Jul 2023 10:25:12 +0000 Subject: [PATCH] Fixed password restore workflow to work with application --- moonstreamapi/moonstreamapi/routes/users.py | 4 +++- moonstreamapi/moonstreamapi/version.py | 2 +- moonstreamapi/setup.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/moonstreamapi/moonstreamapi/routes/users.py b/moonstreamapi/moonstreamapi/routes/users.py index d4cfa747..6b97cccd 100644 --- a/moonstreamapi/moonstreamapi/routes/users.py +++ b/moonstreamapi/moonstreamapi/routes/users.py @@ -48,7 +48,9 @@ async def get_user_handler(request: Request) -> BugoutUser: @router.post("/password/reset_initiate", tags=["users"], response_model=Dict[str, Any]) async def restore_password_handler(email: str = Form(...)) -> Dict[str, Any]: try: - response = bc.restore_password(email=email) + response = bc.restore_password( + email=email, application_id=MOONSTREAM_APPLICATION_ID + ) except BugoutResponseException as e: raise MoonstreamHTTPException(status_code=e.status_code, detail=e.detail) except Exception as e: diff --git a/moonstreamapi/moonstreamapi/version.py b/moonstreamapi/moonstreamapi/version.py index 2240c512..9f8fe571 100644 --- a/moonstreamapi/moonstreamapi/version.py +++ b/moonstreamapi/moonstreamapi/version.py @@ -2,4 +2,4 @@ Moonstream library and API version. """ -MOONSTREAMAPI_VERSION = "0.2.7" +MOONSTREAMAPI_VERSION = "0.2.8" diff --git a/moonstreamapi/setup.py b/moonstreamapi/setup.py index 9ff1a049..c23a227a 100644 --- a/moonstreamapi/setup.py +++ b/moonstreamapi/setup.py @@ -13,7 +13,7 @@ setup( install_requires=[ "appdirs", "boto3", - "bugout>=0.2.9", + "bugout>=0.2.10", "moonstream-entity>=0.0.5", "fastapi", "moonstreamdb>=0.3.4",