Validate.php
public static function isPasswd($passwd, $size = Validate::PASSWORD_LENGTH)
    {
        return self::getPasswordComplexity($passwd, $size) >= self::PASSWORD_COMPLEXITY_MEDIUM;
    }
public static function isPasswd($passwd, $size = Validate::PASSWORD_LENGTH)
    {
        return self::getPasswordComplexity($passwd, $size) >= self::PASSWORD_COMPLEXITY_MEDIUM;
    }
Check for password validity

@param string $passwd Password to validate
@param int $size

@return boolean Validity is ok or not