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

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

        $updating = $this->getUpdating();

        if (isset($updating['email']) && $updating['email'] === $value) {
            return true;
        }

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

        if (empty($user)) {
            return true;
        }

        $this->setErrorExists($field, $this->translation->text('E-mail'));
        return false;
    }
protected function validateEmailUniqueUser()
    {
        $field = 'email';
        $value = $this->getSubmitted($field);

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

        $updating = $this->getUpdating();

        if (isset($updating['email']) && $updating['email'] === $value) {
            return true;
        }

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

        if (empty($user)) {
            return true;
        }

        $this->setErrorExists($field, $this->translation->text('E-mail'));
        return false;
    }
protected function validateEmailUniqueUser ( ) { $ field = 'email' ; $ value = $ this -> getSubmitted ( $ field ) ; if ( $ this -> isError ( $ field ) || ! isset ( $ value ) ) { return null ; } $ updating = $ this -> getUpdating ( ) ; if ( isset ( $ updating [ 'email' ] ) && $ updating [ 'email' ] === $ value ) { return true ; } $ user = $ this -> user -> getByEmail ( $ value ) ; if ( empty ( $ user ) ) { return true ; } $ this -> setErrorExists ( $ field , $ this -> translation -> text ( 'E-mail' ) ) ; return false ; }
Validates uniqueness of submitted E-mail
@return boolean|null
Validates uniqueness of submitted E - mail