Avoid further UI flickering on load and show/hide OR in login screen if more than one is active

Fixes #5028
This commit is contained in:
Johannes Zellner 2023-08-01 12:57:25 +02:00
parent d17d12e719
commit 1271409989
3 changed files with 23 additions and 14 deletions

View file

@ -25,12 +25,6 @@ Template.userFormsLayout.onCreated(function () {
templateInstance.currentSetting = new ReactiveVar();
templateInstance.isLoading = new ReactiveVar(false);
Meteor.call('isPasswordLoginEnabled', (_, result) => {
if (result) {
$('.at-pwd-form').show();
}
});
if (!ReactiveCache.getCurrentUser()?.profile) {
Meteor.call('isOidcRedirectionEnabled', (_, result) => {
if (result) {
@ -42,6 +36,7 @@ Template.userFormsLayout.onCreated(function () {
}
});
}
Meteor.call('isDisableRegistration', (_, result) => {
if (result) {
$('.at-signup-link').hide();
@ -53,7 +48,6 @@ Template.userFormsLayout.onCreated(function () {
$('.at-pwd-link').hide();
}
});
});
Template.userFormsLayout.onRendered(() => {