| 开发者 | fjarrett |
|---|---|
| 更新时间 | 2015年10月16日 23:58 |
| PHP版本: | 3.7 及以上 |
| WordPress版本: | 4.2 |
| 版权: | GPLv2+ |
| 版权网址: | 版权信息 |
The default password length is 20 and can be overridden with a filter. Simply add this hook to your theme's functions.php file or as an MU plugin:
add_filter( 'spg_default_password_length', function() { return 12; } );
The default minimum password length is 7 and can be overridden with a filter. Simply add this hook to your theme's functions.php file or as an MU plugin:
add_filter( 'spg_min_password_length', function() { return 8; } );
Note: This setting only affects the minimum length of generated passwords, not passwords manually created by users.
The default maximum password length is 32 and can be overridden with a filter. Simply add this hook to your theme's functions.php file or as an MU plugin:
add_filter( 'spg_max_password_length', function() { return 50; } );
Note: This setting only affects the maximum length of generated passwords, not passwords manually created by users.
The default mode for password generation is non-memorable (alphanumeric + special characters), but this too can be overridden with a filter so that generated passwords are purely alphabetic, making them easier for users to memorize. Simply add this hook to your theme's functions.php file or as an MU plugin:
add_filter( 'spg_allow_memorable_passwords', '__return_true' );