mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
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:
parent
454d0b270d
commit
0775e2a3e5
3 changed files with 29 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue