mirror of
https://github.com/wekan/wekan.git
synced 2026-01-22 17:26:10 +01:00
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:
parent
a94cc5351f
commit
b107fb0017
2 changed files with 54 additions and 40 deletions
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue