The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/server/startup/initialData.coffee

28 lines
570 B

Meteor.startup ->
Meteor.defer ->
if not ChatRoom.findOne('name': 'general')?
ChatRoom.insert
_id: 'GENERAL'
usernames: []
ts: new Date()
t: 'c'
name: 'general'
msgs: 0
# if not Meteor.users.findOne()?
# 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'
# avatarOrigin: 'none'
# Accounts.setPassword id, 'admin'