Merge remote-tracking branch 'remotes/origin/master' into feature-meteor-files

This commit is contained in:
Lauri Ojansivu 2022-03-01 21:09:55 +02:00
commit b378bb55ac
96 changed files with 559 additions and 25 deletions

View file

@ -11,6 +11,13 @@ Settings.attachSchema(
new SimpleSchema({
disableRegistration: {
type: Boolean,
optional: true,
defaultValue: false,
},
disableForgotPassword: {
type: Boolean,
optional: true,
defaultValue: false,
},
'mailServer.username': {
type: String,
@ -435,6 +442,24 @@ if (Meteor.isServer) {
}
},
isDisableRegistration() {
const setting = Settings.findOne({});
if (setting.disableRegistration === true) {
return true;
} else {
return false;
}
},
isDisableForgotPassword() {
const setting = Settings.findOne({});
if (setting.disableForgotPassword === true) {
return true;
} else {
return false;
}
},
getMatomoConf() {
return {
address: getEnvVar('MATOMO_ADDRESS'),