Skip to content
New issue

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

more control over createUser and loginWithPassword #102

Open
lokat opened this issue Jun 14, 2016 · 5 comments
Open

more control over createUser and loginWithPassword #102

lokat opened this issue Jun 14, 2016 · 5 comments
Assignees

Comments

@lokat
Copy link

lokat commented Jun 14, 2016

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

@infacq
Copy link

infacq commented Jun 14, 2016

+1

@dukye
Copy link

dukye commented Dec 16, 2016

+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.

@johhansantana
Copy link

I'm getting error when trying to createUser as well

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"
}

@infacq
Copy link

infacq commented Mar 2, 2017

I suggest you use native meteor createUser by calling it like this

asteroid.call('createUser', options)

@elmarti
Copy link

elmarti commented Mar 15, 2018

Is this likely to be fixed any time soon? I can jump on it if you like.
image
Current work arround is to call the createUser directly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants