protected function validateEmailExistsUser()
    {
        $field = 'email';
        $value = $this->getSubmitted($field);

        if ($this->isError($field) || !isset($value)) {
            return null;
        }

        $user = $this->user->getByEmail($value);

        if (empty($user['status'])) {
            $this->setErrorUnavailable($field, $this->translation->text('E-mail'));
            return false;
        }

        $this->setSubmitted($field, $user);
        return true;
    }
protected function validateEmailExistsUser()
    {
        $field = 'email';
        $value = $this->getSubmitted($field);

        if ($this->isError($field) || !isset($value)) {
            return null;
        }

        $user = $this->user->getByEmail($value);

        if (empty($user['status'])) {
            $this->setErrorUnavailable($field, $this->translation->text('E-mail'));
            return false;
        }

        $this->setSubmitted($field, $user);
        return true;
    }
protected function validateEmailExistsUser ( ) { $ field = 'email' ; $ value = $ this -> getSubmitted ( $ field ) ; if ( $ this -> isError ( $ field ) || ! isset ( $ value ) ) { return null ; } $ user = $ this -> user -> getByEmail ( $ value ) ; if ( empty ( $ user [ 'status' ] ) ) { $ this -> setErrorUnavailable ( $ field , $ this -> translation -> text ( 'E-mail' ) ) ; return false ; } $ this -> setSubmitted ( $ field , $ user ) ; return true ; }
Validates an email and checks the responding user enabled
@return boolean|null
Validates an email and checks the responding user enabled