Open lokat opened 8 years ago
+1
+1 I have a bug on createUser using version 2.0.3 "Need to set a username or email [400]" due to malformatted object like previously wrote.
I'm getting error when trying to createUser
as well
const options = {
email: 'testing@test.com',
password: 'testing123'
};
asteroid.createUser(options, (err, res) => {
console.log('err: ', err);
console.log('res: ', res);
});
{
"error": 400,
"reason": "Need to set a username or email",
"message": "Need to set a username or email [400]",
"errorType": "Meteor.Error"
}
I suggest you use native meteor createUser
by calling it like this
asteroid.call('createUser', options)
Is this likely to be fixed any time soon? I can jump on it if you like.
Current work arround is to call the
createUser
directly
Hi,
I can see that createUser and loginWithPassword passing options to meteor accounts using a defined options parameter
where as from the meteor accounts, the options should be
as been stated at http://docs.meteor.com/api/passwords.html#Accounts-createUser