You are here

function password_policy_constraint_length_validate in Password Policy 6

Same name and namespace in other branches
  1. 7 constraints/constraint_length.inc \password_policy_constraint_length_validate()

Password validation.

1 call to password_policy_constraint_length_validate()
PasswordPolicyTestCase::testLengthConstraint in tests/password_policy.test

File

constraints/constraint_length.inc, line 28
Password policy constraint callbacks.

Code

function password_policy_constraint_length_validate($password, $constraint, $uid) {
  $length = drupal_strlen($password);
  return $length >= $constraint;
}