mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
parent
4bcddcc98a
commit
3076547cee
3 changed files with 30 additions and 22 deletions
|
|
@ -442,25 +442,21 @@ if (Meteor.isServer) {
|
|||
}
|
||||
},
|
||||
|
||||
getDisableRegistration() {
|
||||
isDisableRegistration() {
|
||||
const setting = Settings.findOne({});
|
||||
if (!setting.disableRegistration) {
|
||||
return false;
|
||||
if (setting.disableRegistration === 'true') {
|
||||
return true;
|
||||
} else {
|
||||
return {
|
||||
disableRegistration: `${setting.disableRegistration}`,
|
||||
};
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
||||
getDisableForgotPassword() {
|
||||
isDisableForgotPassword() {
|
||||
const setting = Settings.findOne({});
|
||||
if (!setting.disableForgotPassword) {
|
||||
return false;
|
||||
if (setting.disableForgotPassword === 'true') {
|
||||
return true;
|
||||
} else {
|
||||
return {
|
||||
disableForgotPassword: `${setting.disableForgotPassword}`,
|
||||
};
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue