From e3c3cc0d8df14c84852a854383efa1b4bb83f218 Mon Sep 17 00:00:00 2001 From: lkisme Date: Sun, 26 Feb 2017 14:25:29 +0800 Subject: Make mailServer setting optional --- models/settings.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'models') diff --git a/models/settings.js b/models/settings.js index 77bf8d24..b160c2a4 100644 --- a/models/settings.js +++ b/models/settings.js @@ -6,18 +6,23 @@ Settings.attachSchema(new SimpleSchema({ }, 'mailServer.username': { type: String, + optional: true, }, 'mailServer.password': { type: String, + optional: true, }, 'mailServer.host': { type: String, + optional: true, }, 'mailServer.port': { type: String, + optional: true, }, 'mailServer.from': { type: String, + optional: true, defaultValue: 'Kanban', }, createdAt: { -- cgit v1.2.3-1-g7c22