mondora/asteroid — pull request #29 by HaNdTriX (2014-10-07 13:19:35+00:00)
Title: Allow to createUsers with email and username

First of all thanks for this great Package! :+1:

Anyway it is not possible to create a new User with username **and** password.

Since this is part of the Meteor [Accounts](http://docs.meteor.com/#accounts_ui_config) package I suggest the following fix.

This allows to pass an Object to `Asteroid.prototype.createUser`.

**Example:**

var ceres = new Asteroid('localhost:3000');
ceres.createUser({
email: 'max@example.de'
username: 'Max',
password: 'secret123',
profile: {}
}).then(...);