protected function validateEmail($email) {
        $state['error'] = true;

        if (strlen($email) < (int)$this->config->verify_email_min_length ) {
            $state['message'] = $this->__lang("email_short", (int)$this->config->verify_email_min_length);

            return $state;
        } elseif (strlen($email) > (int)$this->config->verify_email_max_length ) {
            $state['message'] = $this->__lang("email_long", (int)$this->config->verify_email_max_length);

            return $state;
        } elseif (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
            $state['message'] = $this->__lang("email_invalid", $email);

            return $state;
        }
        
        if ((int)$this->config->verify_email_use_banlist && $this->isEmailBanned($email)) {
            $this->addAttempt();
            $state['message'] = $this->__lang("email_banned");

            return $state;
        }

        $state['error'] = false;

        return $state;
    }
protected function validateEmail($email) {
        $state['error'] = true;

        if (strlen($email) < (int)$this->config->verify_email_min_length ) {
            $state['message'] = $this->__lang("email_short", (int)$this->config->verify_email_min_length);

            return $state;
        } elseif (strlen($email) > (int)$this->config->verify_email_max_length ) {
            $state['message'] = $this->__lang("email_long", (int)$this->config->verify_email_max_length);

            return $state;
        } elseif (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
            $state['message'] = $this->__lang("email_invalid", $email);

            return $state;
        }
        
        if ((int)$this->config->verify_email_use_banlist && $this->isEmailBanned($email)) {
            $this->addAttempt();
            $state['message'] = $this->__lang("email_banned");

            return $state;
        }

        $state['error'] = false;

        return $state;
    }
protected function validateEmail ( $ email ) { $ state [ 'error' ] = true ; if ( strlen ( $ email ) < ( int ) $ this -> config -> verify_email_min_length ) { $ state [ 'message' ] = $ this -> __lang ( "email_short" , ( int ) $ this -> config -> verify_email_min_length ) ; return $ state ; } elseif ( strlen ( $ email ) > ( int ) $ this -> config -> verify_email_max_length ) { $ state [ 'message' ] = $ this -> __lang ( "email_long" , ( int ) $ this -> config -> verify_email_max_length ) ; return $ state ; } elseif ( ! filter_var ( $ email , FILTER_VALIDATE_EMAIL ) ) { $ state [ 'message' ] = $ this -> __lang ( "email_invalid" , $ email ) ; return $ state ; } if ( ( int ) $ this -> config -> verify_email_use_banlist && $ this -> isEmailBanned ( $ email ) ) { $ this -> addAttempt ( ) ; $ state [ 'message' ] = $ this -> __lang ( "email_banned" ) ; return $ state ; } $ state [ 'error' ] = false ; return $ state ; }
Verifies that an email is valid
@param string $email
@return array $return
Verifies that an email is valid