We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I can see that createUser and loginWithPassword passing options to meteor accounts using a defined options parameter
var options = { password: password, user: { username: username, email: email } };
where as from the meteor accounts, the options should be
{username: string, email: string, password: string, profile: {object}}
as been stated at http://docs.meteor.com/api/passwords.html#Accounts-createUser
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
+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
createUser
const options = { email: '[email protected]', 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
davidebianchi
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: