meteor - How can I set the password of a user created in a fixture -


i create user in fixture , able sign in user. reason, need somehow set password of user (if try sign in without password, 'user has no password set' validation error).

so far have:

var joeid = meteor.users.insert({     username: 'joe' }) 

using http://docs.meteor.com/#accounts_createuser can this:

accounts.createuser({   'username'  : 'john doe',   'email'     : 'john@doe.com',   'password'  : 'abc123' //encrypted automatically  }, function(err){   if(typeof err === 'undefined'){     //account created might want send email user using account.sendenrollmentemail()   } }); 

which login user on successful creation.


Comments

Popular posts from this blog

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -