UNPKG

@digitalpersona/authentication

Version:
33 lines (19 loc) 1.12 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@digitalpersona/authentication](./authentication.md) &gt; [PasswordAuth](./authentication.passwordauth.md) &gt; [reset](./authentication.passwordauth.reset.md) ## PasswordAuth.reset() method Resets user's password. <b>Signature:</b> ```typescript reset(user: User, newPassword: string, token: JSONWebToken): Promise<void>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | user | <code>User</code> | a user's name. | | newPassword | <code>string</code> | a new password to replace the old password. | | token | <code>JSONWebToken</code> | a JSON Web Token of a person initiating a password reset. This person must have a privilege to set users' passwords. | <b>Returns:</b> `Promise<void>` a promise to reset user's password. ## Remarks DigitalPersona AD Server supports password randomization only for ActiveDirectory users. DigitalPersona LDS Server supports password randomization only for DigitalPersona users (formerly "Altus Users").