pGenerator
pGenerator copied to clipboard
support multiple passwordElement
There is a situation where I need to set values for another password input(confirm the password), but currently only support single passwordElement
, I would like to make passwordElement
support Array so can set value for multiple password inputs;
Examples
$('#password-generator-button').pGenerator({
'bind': 'click',
'passwordElement': ['#password-input','#confirm_password'],
'displayElement': '#display-password',
'passwordLength': 16,
'uppercase': true,
'lowercase': true,
'numbers': true,
'specialChars': true,
'additionalSpecialChars': [],
'onPasswordGenerated': function(generatedPassword) { }
});