ellaisys / aws-cognito

AWS Cognito package (with MFA Feature) using the AWS SDK for PHP/Laravel
https://ellaisys.github.io/aws-cognito/
MIT License
110 stars 43 forks source link

Fix error when ResetsPasswords expecting JSON #49

Closed danilopinotti closed 2 years ago

danilopinotti commented 2 years ago

Without this PR, when we try to resets password expecting a json response, the follow error appears:

{
    "message": "Class \"Ellaisys\\Cognito\\Auth\\JsonResponse\" not found",
    "exception": "Error",
    "file": "/app/vendor/ellaisys/aws-cognito/src/Auth/ResetsPasswords.php",
    "line": 89,
        (...)

This PR fixes this error.

amitdhongde commented 2 years ago

Thank you for sharing the fix. Appreciate your contribution to the open source community