mirror of
https://github.com/wekan/wekan.git
synced 2026-02-04 23:51:48 +01:00
Merge remote-tracking branch 'remotes/origin/master' into feature-meteor-files
This commit is contained in:
commit
b378bb55ac
96 changed files with 559 additions and 25 deletions
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue