Create a new user using his e-mail, phone and country code.
@param email
@param phone
@param countryCode
@return a User instance
188340
public com.authy.api.User createUser(String email, String phone, String countryCode) {
		User user = new User(email, phone, countryCode);
		
		String content = this.post(NEW_USER_PATH, user);

		return userFromXml(this.getStatus(), content);
	}
686680
public DOAuth2User findByEmail(java.lang.String email) {
    return queryUniqueByField(null, DOAuth2UserMapper.Field.EMAIL.getFieldName(), email);
  }
1052742
public function createUser($email)
    {
        $contents = $this
            ->call('POST', self::USERS_RESOURCE, ['json' => [
                'email' => $email,
            ]], false)
            ->getBody()
            ->getContents()
        ;

        return UserModel::createFromJsonResponse($contents);
    }
668009
public static MultifactorAuthenticationTrustRecord newInstance(final String principal, final String geography, final String fingerprint) {
        val r = new MultifactorAuthenticationTrustRecord();
        r.setRecordDate(LocalDateTime.now().truncatedTo(ChronoUnit.SECONDS));
        r.setPrincipal(principal);
        r.setDeviceFingerprint(fingerprint);
        r.setName(principal.concat("-").concat(LocalDate.now().toString()).concat("-").concat(geography));
        return r;
    }
553051
public function createTempAccount($login, $email = null) {
		$this->isHasPossibility();
		$body = compact(['login', 'email']);
		$scenario = RegistrationForm::SCENARIO_REQUEST;
		if($this->requiredEmail) {
			$scenario = RegistrationForm::SCENARIO_REQUEST_WITH_EMAIL;
		}
        Helper::validateForm(RegistrationForm::class, $body, $scenario);
		$login = $this->validateLogin($login);
		$this->checkLoginExistsInTps($login);
		\App::$domain->account->confirm->send($login, self::CONFIRM_ACTION, $this->expire, ArrayHelper::toArray($body));
		/*try {
		
		} catch(ConfirmAlreadyExistsException $e) {
			$error = new ErrorCollection();
			$error->add('login', 'account/confirm', 'already_sended_code {phone}', ['phone' => LoginHelper::format($login)]);
			throw new UnprocessableEntityHttpException($error);
		}*/
	}
462278
public function createCustomer($first_name, $last_name, $email, $phone)
    {
        return $this->getCustomerModel()->make($first_name, $last_name, $email, $phone)->save();
    }
1329944
def create_user(server_context, email, container_path=None, send_email=False):
    
    url = server_context.build_url(security_controller, 'createNewUser.api', container_path)
    payload = {
        'email': email,
        'sendEmail': send_email
    }

    return server_context.make_request(url, payload)
546817
public void addEmail(String newEmail) {
        Assert.hasText(newEmail, "Attempted to add null or empty email string to user.");

        if (emails == null) {
            emails = new ArrayList<>(1);
        }
        for (Email email : emails) {
            if (email.value.equals(newEmail)) {
                throw new IllegalArgumentException("Already contains email " + newEmail);
            }
        }

        Email e = new Email();
        e.setValue(newEmail);
        emails.add(e);
    }
1238305
public static boolean isValidEmailAddress(final String email) {
    if (email == null) {
      return false;
    }

    boolean result = true;
    try {
      final InternetAddress emailAddr = new InternetAddress(email);
      emailAddr.validate();
    } catch (final AddressException ex) {
      result = false;
    }
    return result;
  }
1151655
def create(self, validated_data):
        ''''''
        validated_data['username'] = validated_data['email']
        admin = validated_data.pop('is_superuser', None)

        if admin is True:
            user = User.objects.create_superuser(**validated_data)
        else:
            user = User.objects.create_user(**validated_data)

        return user
153011
public void createAccount() {
    mAccount = new AccountFactory(mAccountConfig).setHttpClient(httpclient).createAccount();
    mAccess = mAccount.getAccess();
    if (mRegion != null) {
      mAccess.setPreferredRegion(mRegion);
    }
  }
169583
@SneakyThrows
    public User getOrCreateUser(final Principal principal) {
        val attributes = principal.getAttributes();
        if (!attributes.containsKey(this.mailAttribute)) {
            throw new IllegalArgumentException("No email address found for " + principal.getId());
        }
        if (!attributes.containsKey(this.phoneAttribute)) {
            throw new IllegalArgumentException("No phone number found for " + principal.getId());
        }

        val email = attributes.get(this.mailAttribute).get(0).toString();
        val phone = attributes.get(this.phoneAttribute).get(0).toString();
        return this.authyUsers.createUser(email, phone, this.countryCode);
    }
980681
function Customer() {
    /**
     * The contactId value
     * @member
     */
    this.contactId = null;
    /**
     * The isGuest value
     * @member
     */
    this.isGuest = null;
    /**
     * The name of value
     * @member
     * @type { Name }
     */
    this.name = Object.create(Name.prototype);
    /**
     * The phone value
     * @member
     */
    this.phone = null;
    /**
     * The email value
     * @member
     */
    this.email = null;

}
36507
public Iterable<DContact> queryByEmail(Object parent, java.lang.String email) {
    return queryByField(parent, DContactMapper.Field.EMAIL.getFieldName(), email);
  }
584554
def create_settings(sender, **kwargs):
    
    created = kwargs['created']
    user = kwargs['instance']
    if created:
        UserWebNotificationSettings.objects.create(user=user)
        UserEmailNotificationSettings.objects.create(user=user)
1081825
public Email recipient(EmailAddress recipient, RecipientType type) {
		recipient(new Recipient(recipient, type));
		return this;
	}
955901
public GreenMailConfiguration withUser(final String email, final String login, final String password) {
        this.usersToCreate.add(new UserBean(email, login, password));
        return this;
    }