Browse Source

Make mailServer setting optional

lkisme 8 years ago
parent
commit
e3c3cc0d8d
1 changed files with 5 additions and 0 deletions
  1. 5 0
      models/settings.js

+ 5 - 0
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: {