mirror of
https://github.com/wekan/wekan.git
synced 2025-12-27 04:38:49 +01:00
Fix lints
This commit is contained in:
parent
de9965213a
commit
ec453b89b8
1 changed files with 11 additions and 6 deletions
|
|
@ -114,16 +114,21 @@ async function authentication(event, instance) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopImmediatePropagation();
|
event.stopImmediatePropagation();
|
||||||
|
|
||||||
if (result === 'ldap') {
|
switch (result) {
|
||||||
return Meteor.loginWithLDAP(match, password, function() {
|
case 'ldap':
|
||||||
|
Meteor.loginWithLDAP(match, password, function() {
|
||||||
FlowRouter.go('/');
|
FlowRouter.go('/');
|
||||||
});
|
});
|
||||||
}
|
break;
|
||||||
|
|
||||||
if (result === 'cas') {
|
case 'cas':
|
||||||
return Meteor.loginWithCas(function() {
|
Meteor.loginWithCas(function() {
|
||||||
FlowRouter.go('/');
|
FlowRouter.go('/');
|
||||||
});
|
});
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -135,7 +140,7 @@ function getAuthenticationMethod({displayAuthenticationMethod, defaultAuthentica
|
||||||
}
|
}
|
||||||
|
|
||||||
function getUserAuthenticationMethod(defaultAuthenticationMethod, match) {
|
function getUserAuthenticationMethod(defaultAuthenticationMethod, match) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve) => {
|
||||||
try {
|
try {
|
||||||
Meteor.subscribe('user-authenticationMethod', match, {
|
Meteor.subscribe('user-authenticationMethod', match, {
|
||||||
onReady() {
|
onReady() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue