pGenerator icon indicating copy to clipboard operation
pGenerator copied to clipboard

support multiple passwordElement

Open RogerLiNing opened this issue 6 years ago • 0 comments

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) { }
});

RogerLiNing avatar Jan 28 '19 05:01 RogerLiNing