ソースを参照

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,