You are here

function Length_Constraint::validate in Password Policy 5

Overrides Character_Constraint::validate

File

constraints/constraint_length.php, line 7

Class

Length_Constraint

Code

function validate($plaintext_password, $user = NULL) {
  $len = strlen($plaintext_password);
  return $len >= $this->minimumConstraintValue;
}