Interface: PasswordConstraints

config~PasswordConstraints

An interface describing the 'Password Constraints' object property of the config object object.

Properties:
NameTypeDescription
min_lengthnumber

The minium length a password can be.

max_lengthnumber

the maximum length a password can be.

min_excludeCharactersLengthnumber

The minimum length the 'exclude characters' string attribute can be.

max_excludeCharactersLengthnumber

The maximum length the 'exclude characters' string attribute can be.

min_whitespaceCharactersOffsetnumber

The offset used to indicate the minimum amount of characters needed to prevent generating passwords that will contain whitespace that would be trimmed out. This offset is used to adjust the max_whitespaceBetween and min_whitespaceBetween attributes.

max_whitespaceBetweenfunction

The maximum amount of whitespace characters allowed in the middle of a password. It's determined by checking if the passwordConstraints.max_length minus the whitespaceCharactersOffset attribute is greater then or equal to one. If it is we can have at least a maximum of one whitespace character between our password

min_whitespaceBetweenfunction

The minimum amount of whitespace characters allowed in the middle of a password. It's determined by checking if the passwordConstraints.max_length minus the whitespaceCharactersOffset attribute is greater then or equal to one. If it is we can have at least minimum of one whitespace character between our password

Source: