Skip to content

Instantly share code, notes, and snippets.

@deanrad
Last active August 29, 2015 14:06
Show Gist options
  • Save deanrad/aa1053b477f268187e3d to your computer and use it in GitHub Desktop.
Save deanrad/aa1053b477f268187e3d to your computer and use it in GitHub Desktop.
Create a bunch of new users in Meteor
if(Meteor.isServer){
_.each(["Angelo Paramo",
"Demarcus Drouin",
"Suzie Magwood",
"Caron Wilcoxo",
"Orville Manns",
"Tashia Taber",
"Nickie Buchman",
"Scotty Monette",
"Clare Murillo",
"Avis Adkisson",
"Kizzie Delucia",
"Onie Pettitt",
"Maxie Copas",
"Guillermo Vernon",
"Wes Guardiola",
"Pasty Poole",
"Tammi Widger",
"Alta Whisenhunt",
"Millie Cronk",
"Ashlee Hartgrove"], function(u){
var uname = u.split(" ")[0][0] + u.split(" ")[1];
var dname = u.split(" ")[0][0] + " " + u.split(" ")[1];
var email = uname + "@example.com";
var pwd = "password";
var uid = Accounts.createUser({
username: uname,
email: email,
password: pwd,
profile: {
name: dname
}
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment