Skip to main content

changePassword

User password change (only for activated account tariffs with Activation feature enabled).

Description

This method changes the password of an authorized user. If successful, it will return true. It returns a Promise that resolves to an boolean value.

AuthProvider.changePassword(

marker*, userIdentifier*, type*, code*, newPassword*, repeatPassword

);

Parameters schema

Schema

marker:* string
The text identifier of the authorization provider.
example: email

userIdentifier:* string
The text identifier of the user's object (user login)
example: example@oneentry.cloud

type:* string
Operation type (1 - for changing password, 2 - for recovery)
example: 1

code:* string
Service code
example: EW32RF

newPassword:* string
New password
example: 654321

repeatPassword: string
Optional variable contains repeat new password for validation
example: 654321

Examples

Minimal example

const response = await AuthProvider.changePassword(
'email',
'example@oneentry.cloud',
1,
'EW32RF',
654321,
654321
);

Example response

true