Skip to Content
NFSFU234FormValidation v3 is here — file upload validation, config-driven rules, and more.
v3 (current)generateRandomPassword

generateRandomPassword

Alias for generatePassword. Returns: Promise<any>

ParameterTypeRequiredDefaultDescription
lengthnumberrequired-
shouldHashbooleanrequired-
Usage
Example: Generate Random Password
const randomPassword = nfsfu234FormValidation.generateRandomPassword(); randomPassword.then(password => { console.log("Generated Password: ", password); // Example output: "A!3d7fhJ" });

See also: generatePassword — this is an alias for it.

Last updated on