Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change user password #1756

Open
MRVDH opened this issue Jan 28, 2022 · 0 comments
Open

Change user password #1756

MRVDH opened this issue Jan 28, 2022 · 0 comments

Comments

@MRVDH
Copy link

MRVDH commented Jan 28, 2022

Support reference number

Description

Documentation states that customersPassword is implemented, but code suggestions say otherwise, and error shows up in code.

image

Geeting the error:

_commercetools_client__WEBPACK_IMPORTED_MODULE_0__.requestBuilder.customersPassword is not a function

Code used:

    await requestBuilder
        .customersPassword()
        .post({
            body: {
                id: id,
                version: version,
                currentPassword: 'old',
                newPassword: 'new'
            }
        })
        .execute()

Packages in use:

    "@commercetools/sdk-auth": "^3.0.12",
    "@commercetools/sdk-client": "^2.1.2",
    "@commercetools/sdk-middleware-auth": "^6.1.4",
    "@commercetools/sdk-middleware-http": "^6.0.11",

Expected Behavior

If implemented it should work

Current Behavior

See description above.

Context

Password change. Currently blocking our work since it seems there is no way to change it other than making a direct REST call, which is less than ideal.

Possible Solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant