Controller_Validator_Advanced::rule_crack PHP Method

rule_crack() public method

public rule_crack ( $a )
    public function rule_crack($a)
    {
        $result = null;
        if (function_exists('crack_check')) {
            if (!crack_check($a)) {
                return $this->fail('Bad password - ' . crack_getlastmessage());
            }
            return;
        }
        $res = $this->checkByCrackLib($a);
        if ($res === true) {
            return;
        }
        return $this->fail('Bad password - ' . $res);
    }