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

@ -4,7 +4,7 @@ const passwordField = AccountsTemplates.removeField('password');
const emailField = AccountsTemplates.removeField('email');
let disableRegistration = false;
let disableForgotPassword = false;
let passwordLoginDisabled = false;
let passwordLoginEnabled = false;
let oidcRedirectionEnabled = false;
let oauthServerUrl = "home";
let oauthDashboardUrl = "";
@ -16,11 +16,9 @@ Meteor.call('isOidcRedirectionEnabled', (_, result) => {
}
});
Meteor.call('isPasswordLoginDisabled', (_, result) => {
Meteor.call('isPasswordLoginEnabled', (_, result) => {
if (result) {
passwordLoginDisabled = true;
//console.log('passwordLoginDisabled');
//console.log(result);
passwordLoginEnabled = true;
}
});