浏览代码

Fix Forgot Password to be optional.

Thanks to xet7 !
Lauri Ojansivu 3 年之前
父节点
当前提交
9bd6879455
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      models/settings.js

+ 4 - 0
models/settings.js

@@ -11,9 +11,13 @@ Settings.attachSchema(
   new SimpleSchema({
     disableRegistration: {
       type: Boolean,
+      optional: true,
+      defaultValue: false,
     },
     disableForgotPassword: {
       type: Boolean,
+      optional: true,
+      defaultValue: false,
     },
     'mailServer.username': {
       type: String,