UNPKG

@digitalpersona/enrollment

Version:
28 lines (16 loc) 781 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@digitalpersona/enrollment](./enrollment.md) &gt; [PasswordEnroll](./enrollment.passwordenroll.md) &gt; [enroll](./enrollment.passwordenroll.enroll.md) ## PasswordEnroll.enroll() method Changes a password. <b>Signature:</b> ```typescript enroll(newPassword: string, oldPassword: string): Promise<void>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | newPassword | <code>string</code> | a new password. | | oldPassword | <code>string</code> | a password to replace. Must match the existing password. | <b>Returns:</b> `Promise<void>` a promise to perform the password change or reject in case of an error.