Try to fix Admin Panel / Disable Registration and Disable Forgot Password.

Thanks to urmel1960, Ben0it-T and xet7 !

Fixes #4384
This commit is contained in:
Lauri Ojansivu 2022-02-28 01:34:57 +02:00
parent 454d0b270d
commit 0775e2a3e5
3 changed files with 29 additions and 17 deletions

View file

@ -444,7 +444,7 @@ if (Meteor.isServer) {
isDisableRegistration() {
const setting = Settings.findOne({});
if (setting.disableRegistration === 'true') {
if (setting.disableRegistration === true) {
return true;
} else {
return false;
@ -453,7 +453,7 @@ if (Meteor.isServer) {
isDisableForgotPassword() {
const setting = Settings.findOne({});
if (setting.disableForgotPassword === 'true') {
if (setting.disableForgotPassword === true) {
return true;
} else {
return false;