Move authentication UI handling in correct place

The connectionMethod component only deals with the authentication method
select input.

Fixes #5048
This commit is contained in:
Johannes Zellner 2023-08-02 18:34:09 +02:00
parent a94cc5351f
commit b107fb0017
2 changed files with 54 additions and 40 deletions

View file

@ -23,20 +23,6 @@ Template.connectionMethod.onCreated(function() {
} else {
content.hide();
}
if (this.authenticationMethods.get().some((method) => method.value === 'oauth2')) {
$('.at-oauth').show();
}
Meteor.call('isPasswordLoginEnabled', (_, result) => {
if (result) {
$('.at-pwd-form').show();
}
if (result && this.authenticationMethods.get().length > 1) {
$('.at-sep').show();
}
});
});
});