kopia lustrzana https://github.com/bugout-dev/moonstream
Fixed password restore workflow to work with application
rodzic
cd7704ecd2
commit
ca10fdb37b
|
@ -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:
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
Moonstream library and API version.
|
||||
"""
|
||||
|
||||
MOONSTREAMAPI_VERSION = "0.2.7"
|
||||
MOONSTREAMAPI_VERSION = "0.2.8"
|
||||
|
|
|
@ -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",
|
||||
|
|
Ładowanie…
Reference in New Issue