wording change, email sending optimization, add texts to i18n

This commit is contained in:
lkisme 2017-02-26 21:11:15 +08:00
parent e3c3cc0d8d
commit 39f2837838
9 changed files with 74 additions and 50 deletions

View file

@ -1,7 +1,7 @@
Settings = new Mongo.Collection('settings');
Settings.attachSchema(new SimpleSchema({
strict: {
disableRegistration: {
type: Boolean,
},
'mailServer.username': {
@ -23,7 +23,7 @@ Settings.attachSchema(new SimpleSchema({
'mailServer.from': {
type: String,
optional: true,
defaultValue: 'Kanban',
defaultValue: 'Wekan',
},
createdAt: {
type: Date,
@ -56,7 +56,7 @@ if (Meteor.isServer) {
const setting = Settings.findOne({});
if(!setting){
const now = new Date();
const defaultSetting = {strict: false, mailServer: {
const defaultSetting = {disableRegistration: false, mailServer: {
username: '', password:'', host: '', port:'', from: '',
}, createdAt: now, modifiedAt: now};
Settings.insert(defaultSetting);