Skip to content

[BUG] Improper error handling for resetPassword #1531

Open
@chris-vaimo

Description

@chris-vaimo

Expected Behavior

resetPassword returns error messages from Magento as they are returned from GraphQL.

Actual Behavior

resetPassword throws a hardcoded error, causing the Alokai Magento SDK to return a generic "Internal Server Error" due to lack of handling for such a case.

Possible Solution:

Remove the logic defined in these lines.

if (!result.data.resetPassword) throw new Error("It was not possible to change the user password.");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions