Jelajahi Sumber

Fix Forgot Password to be optional.

Thanks to xet7 !
Lauri Ojansivu 3 tahun lalu
induk
melakukan
9bd6879455
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  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,