Fixed password restore workflow to work with application

pull/860/head
kompotkot 2023-07-18 10:25:12 +00:00
rodzic cd7704ecd2
commit ca10fdb37b
3 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -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:

Wyświetl plik

@ -2,4 +2,4 @@
Moonstream library and API version.
"""
MOONSTREAMAPI_VERSION = "0.2.7"
MOONSTREAMAPI_VERSION = "0.2.8"

Wyświetl plik

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