@plentymarkets/shop-api / doChangeUserPassword
Function: doChangeUserPassword() ​
doChangeUserPassword(
context
,params
):Promise
<Data
<UserChangeResponse
>>
Method doChangeUserPassword - changes user password
Parameters ​
• context: PlentysystemsIntegrationContext
• params: UserChangePasswordParams
Returns ​
Promise
<Data
<UserChangeResponse
>>
Remarks ​
- Calls /rest/io/customer/password/
- This method is used to change the password of the logged-in user.
Example ​
ts
const { data } = await useSdk().plentysystems.doChangeUserPassword({
oldPassword: 'Testuser1234',
password: 'Testuser1234',
password2: 'Testuser1234'
});