View Source PasswordValidator.Validators.CharacterSetValidator (Password Validator v0.5.1)
Validates a password by checking the different types of characters contained within.
Summary
Functions
Example config [ character_set: [
# Require at least 1 upper case letter
upper_case: [1, :infinity],
# Require at least 1 lower case letter
lower_case: 1,
# Require at least 1 number
numbers: 1,
# Require exactly 0 special characters
special: [0, 0],
# Specify which special characters are allowed (default is :all)
allowed_special_characters: "!@#$%^&*()",
] ]