Forráskód Böngészése

Fix Forgot Password to be optional.

Thanks to xet7 !
Lauri Ojansivu 3 éve
szülő
commit
9bd6879455
1 módosított fájl, 4 hozzáadás és 0 törlés
  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,