You are here

function hook_genpass_character_sets_alter in Generate Password 8

Alter the character sets used in genpass_password().

Parameters

array $character_sets: A array of strings which make up separate character sets.

Throws

\Drupal\genpass\InvalidCharacterSetsException. In the event that the character set is too small to be used. Minimum size is the length of the password.

1 invocation of hook_genpass_character_sets_alter()
genpass_password in ./genpass.module
Generate a new password using genpass's internal generation algorithm.

File

./genpass.api.php, line 33
Hooks related to genpass module and password generation.

Code

function hook_genpass_character_sets_alter(&$character_sets) {

  // Add the similar characters back in to annoy users.
  $character_sets['annoyingly_similar'] .= '`|I1l0O';
}