WordPress.org

Forums

WP Password Generator
Great, works... but plz add one more feature (2 posts)

  1. hrobocop
    Member
    Posted 1 year ago #

    Works really great.
    Just plz add some config page, where admin can set some basic behavour how pswds are generated. Great way is for example in 1Password (MacOS).

    It would be greate to select:
    - which characters to use (chars, chars+nums, chars+nums+symbols)
    - length (min, max)
    - generate pronouncable pswd
    - don't use "compliacted" characters, like Y vs Z, 0 vs O, etc.

    Thanx!

  2. Steve Grunwell
    Member
    Plugin Author

    Posted 1 year ago #

    Hey hrobocop,

    In a developer sense, this functionality is already baked into the plugin. The actual generation of passwords is left to the wp_generate_password() function, which is one of the WordPress pluggable functions (core functions you can override easily by including functions with that name in a plugin or theme. Copy the original wp_generate_function() source from wp-includes/pluggable.php into your theme's functions.php, then adjust it to meet your password standards.

    As an added benefit, this is the function that WordPress core calls whenever it needs to generate a new password, so updating it in this one place will ensure that generated passwords, be they from core or WP Password Generator, will conform to your password policy.

    By the way, great call on using 1Password - I'm in that app every day between my laptop and phone. Finally coughed up for the family license when 1Password 4 came out so I could get my wife and brother using it.

    -Steve

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.