Browse Source

Fix Forgot Password to be optional.

Thanks to xet7 !
Lauri Ojansivu 3 years ago
parent
commit
9bd6879455
1 changed files with 4 additions and 0 deletions
  1. 4 0
      models/settings.js

+ 4 - 0
models/settings.js

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