function genpass_generate in Generate Password 8
Same name and namespace in other branches
- 6 genpass.module \genpass_generate()
- 7 genpass.module \genpass_generate()
Generate a new password using the preferred password generation algorithm.
Return value
string A fresh password.
1 call to genpass_generate()
- genpass_register_validate in ./
genpass.module - User registration validation.
File
- ./
genpass.module, line 27 - Contains genpass.module.
Code
function genpass_generate() {
// Length parameter for the password.
$length = \Drupal::config('genpass.settings')
->get('genpass_length');
return \Drupal::moduleHandler()
->invoke(genpass_algorithm_module(), 'password', [
$length,
]);
}