[Solved] Create accounts with a seed


#1

Hi guys,

I wanted to create a seed to generate some users for my app.

I user Accounts.createUser({}); to create the user, and then Accounts.addEmail(userId, newEmail, [verified]) to make the email valid without having to send an email.

The user collection contains the created accounts, but I can’t use any of them to login.

I’m I missing something ?


#2
Accounts.createUser({
  email: 'email@email.org',
  password: 'password'
});

#3

Ok, well it was my fault.

The login action wasn’t even called.