diff -Nuar password_policy/constraints/constraint_character_types.php password_policy.wrk/constraints/constraint_character_types.php --- password_policy/constraints/constraint_character_types.php 1969-12-31 19:00:00.000000000 -0500 +++ password_policy.wrk/constraints/constraint_character_types.php 2006-12-31 22:56:58.302772000 -0500 @@ -0,0 +1,49 @@ += $this->minimumConstraintValue; + } + + function getDescription() { + return t("Password must contain the specified minimum number of character types."); + } + + function getValidationErrorMessage() { + return t("Password must contain a minimum of %numChars different %types of characters.", + array('%numChars' => $this->minimumConstraintValue, + '%types' => format_plural($this->minimumConstraintValue, t('type'), t('types')))); + } + +} +?> diff -Nuar password_policy/password_policy.module password_policy.wrk/password_policy.module --- password_policy/password_policy.module 2006-12-11 17:12:41.000000000 -0500 +++ password_policy.wrk/password_policy.module 2006-12-31 23:07:36.640730072 -0500 @@ -305,7 +305,8 @@ new Lowercase_Constraint(1), new Uppercase_Constraint(1), new Punctuation_Constraint(1), - new History_Constraint()); + new History_Constraint(), + new Character_Types_Constraint(1)); } /**