Last active
August 29, 2015 14:06
-
-
Save deanrad/aa1053b477f268187e3d to your computer and use it in GitHub Desktop.
Create a bunch of new users in Meteor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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