UNPKG

@digitalpersona/authentication

Version:
32 lines (18 loc) 1.07 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; [randomize](./authentication.passwordauth.randomize.md) ## PasswordAuth.randomize() method Creates a randomized user's password. <b>Signature:</b> ```typescript randomize(user: User, token: JSONWebToken): Promise<string>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | user | <code>User</code> | a user's name. | | token | <code>JSONWebToken</code> | a JSON Web Token of a person initiating a password randomization. This person must have a privilege to randomize user passwords. | <b>Returns:</b> `Promise<string>` a promise to return a new randomized 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").