function password_policy_constraint_length_validate in Password Policy 6
Same name and namespace in other branches
- 7 constraints/constraint_length.inc \password_policy_constraint_length_validate()
Password validation.
1 call to password_policy_constraint_length_validate()
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;
}