The error message for complexity is misleading, making it sound like a number of characters is what is required, rather than a number of types of characters.
'Password must contain at least one character of the following types: lowercase, uppercase, digit or punctuation.', 'Password must contain at least @count characters of different types (lowercase, uppercase, digit or punctuation).'
Recommending change to:
'Password must contain characters of at least one of the following types: lowercase, uppercase, digit or punctuation.', 'Password must contain characters of at least @count different types (lowercase, uppercase, digit or punctuation).'
Comments
Comment #2
aohrvetpv commentedThanks
Comment #4
aohrvetpv commentedWould like to rename this constraint by the way. "Complexity" seems vague, something like "character types" or "character classes" would seem better to me. Open to suggestions.
Comment #5
aohrvetpv commentedOpened issue regarding my previous comment: #2464895: Rename "complexity" constraint
Would also be interested to know if you think it should not be renamed.