Commit cbdf1312 authored by sveldkamp's avatar sveldkamp Committed by aohrvetpv
Browse files

Issue #2464503 by sveldkamp: Complexity error message is misleading/confusing

parent c94a566a
Loading
Loading
Loading
Loading
+1 −1
Changes for constraints/constraint_complexity.inc: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ function password_policy_constraint_complexity_description() {
 * Error message of the constraint.
 */
function password_policy_constraint_complexity_error($constraint) {
  return format_plural($constraint, '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).');
  return format_plural($constraint, '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).');
}

/**