Browse Source

Fix Forgot Password to be optional.

Thanks to xet7 !
Lauri Ojansivu 3 năm trước cách đây
mục cha
commit
9bd6879455
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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,