Skip to content

Commit

Permalink
Reordered comment and cSpell directive, extended the cSpell directive…
Browse files Browse the repository at this point in the history
… to include all the characters used in $allowable_characters
  • Loading branch information
kiamlaluno committed Apr 14, 2024
1 parent 6410eb2 commit 5f45e7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/modules/user/user.module
Expand Up @@ -428,11 +428,12 @@ function user_validate_picture(&$form, &$form_state) {
* Generate a random alphanumeric password.
*/
function user_password($length = 10) {
// cSpell:ignore abcdefghijkmnopqrstuvwxyz, ABCDEFGHJKLMNPQRSTUVWXYZ, 23456789

// This variable contains the list of allowable characters for the
// password. Note that the number 0 and the letter 'O' have been
// removed to avoid confusion between the two. The same is true
// of 'I', 1, and 'l'.
// cSpell:ignore abcdefghijkmnopqrstuvwxyz
$allowable_characters = 'abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789';

// Zero-based count of characters in the allowable list:
Expand Down

0 comments on commit 5f45e7f

Please sign in to comment.