mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Fixed Disable Self-Registration. Added Disable Forgot Password to same Admin Panel page.
Thanks to xet7 ! Fixes #3971, fixes #2839
This commit is contained in:
parent
9ca8d78514
commit
b85db43c47
6 changed files with 74 additions and 4 deletions
|
@ -12,6 +12,9 @@ Settings.attachSchema(
|
|||
disableRegistration: {
|
||||
type: Boolean,
|
||||
},
|
||||
disableForgotPassword: {
|
||||
type: Boolean,
|
||||
},
|
||||
'mailServer.username': {
|
||||
type: String,
|
||||
optional: true,
|
||||
|
@ -435,6 +438,28 @@ if (Meteor.isServer) {
|
|||
}
|
||||
},
|
||||
|
||||
getDisableRegistration() {
|
||||
const setting = Settings.findOne({});
|
||||
if (!setting.disableRegistration) {
|
||||
return false;
|
||||
} else {
|
||||
return {
|
||||
disableRegistration: `${setting.disableRegistration}`,
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
getDisableForgotPassword() {
|
||||
const setting = Settings.findOne({});
|
||||
if (!setting.disableForgotPassword) {
|
||||
return false;
|
||||
} else {
|
||||
return {
|
||||
disableForgotPassword: `${setting.disableForgotPassword}`,
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
getMatomoConf() {
|
||||
return {
|
||||
address: getEnvVar('MATOMO_ADDRESS'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue