Is there a way to seed users into accounts-password? Something like:
Users.insert
email: '[email protected]'
password: 'secret'
I've tried many things but no luck yet. Thanks in advance for the help
It's easiest to do this on the server when it starts:
Meteor.startup(function() {
if (Meteor.users.find().count() === 0) {
Accounts.createUser({
username: 'test',
email: '[email protected]',
password: 'password'
});
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With