parent
2136f1e157
commit
7d17ef92b8
@ -0,0 +1,17 @@ |
||||
lineSep = '---------------------------' |
||||
|
||||
Meteor.startup -> |
||||
if not Meteor.users.findOne()? |
||||
console.log lineSep.red |
||||
console.log 'Inserting user admin'.red |
||||
console.log 'email: admin@admin.com | password: admin'.red |
||||
|
||||
id = Meteor.users.insert |
||||
createdAt: new Date |
||||
emails: [ |
||||
address: 'admin@admin.com' |
||||
verified: true |
||||
], |
||||
name: 'Admin' |
||||
|
||||
Accounts.setPassword id, 'admin' |
Loading…
Reference in new issue