Only selectively show login elements once settings is loaded

Fixes #5029
This commit is contained in:
Johannes Zellner 2023-07-30 13:42:20 +02:00
parent 25c8f07c62
commit ab19bbce8e
4 changed files with 11 additions and 9 deletions

View file

@ -45,9 +45,9 @@ Template.userFormsLayout.onCreated(function () {
return this.stop();
},
});
Meteor.call('isPasswordLoginDisabled', (_, result) => {
Meteor.call('isPasswordLoginEnabled', (_, result) => {
if (result) {
$('.at-pwd-form').hide();
$('.at-pwd-form').show();
}
});