Skip to content
Snippets Groups Projects
Commit 7d17ef92 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Init app with user admin

parent 2136f1e1
No related branches found
No related tags found
No related merge requests found
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'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment