commercetools / commercetools/nodejs

Change user password

Open
#1,756 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
77
Forks
70
PR merge metrics
No merged PRs in 30d

Description

### Support reference number

### Description

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

![image](https://user-images.githubusercontent.com/6686385/151533069-eb4a0eb9-04c2-4f1f-af54-7da3104512ca.png)

Geeting the error:
```
_commercetools_client__WEBPACK_IMPORTED_MODULE_0__.requestBuilder.customersPassword is not a function
```

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

Packages in use:
```js
"@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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.