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

@ -56,15 +56,16 @@ Template.userFormsLayout.onCreated(function() {
Meteor.call('isDisableRegistration', (_, result) => {
if (result) {
$('.at-signUp').hide();
$('.at-signup-link').hide();
}
});
Meteor.call('isDisableForgotPassword', (_, data) => {
Meteor.call('isDisableForgotPassword', (_, result) => {
if (result) {
$('.at-forgotPwd').hide();
$('.at-pwd-link').hide();
}
});
});
Template.userFormsLayout.onRendered(() => {