Skip to main content

changePassword

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

AuthProvider.changePassword()

const value = await AuthProvider.changePassword(
'email',
'example@oneentry.cloud',
1,
'EW32RF',
654321,
654321
);
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

This method changes the password of an authorized user. If successful, it will return true.

Example return:

true