mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Fix lint errors.
This commit is contained in:
parent
bd66ea8acc
commit
417dc9dc42
3 changed files with 15 additions and 11 deletions
|
|
@ -126,16 +126,20 @@ function authentication(instance, email, password) {
|
|||
: instance.data.defaultAuthenticationMethod.get();
|
||||
|
||||
switch (authenticationMethod) {
|
||||
case 'ldap':
|
||||
// Use the ldap connection package
|
||||
Meteor.loginWithLDAP(email, password, function(error) {
|
||||
if (!error) return FlowRouter.go('/');
|
||||
case 'ldap':
|
||||
// Use the ldap connection package
|
||||
Meteor.loginWithLDAP(email, password, function(error) {
|
||||
if (error) {
|
||||
displayError('error-ldap-login');
|
||||
});
|
||||
break;
|
||||
return this.stop();
|
||||
} else {
|
||||
return FlowRouter.go('/');
|
||||
}
|
||||
});
|
||||
break;
|
||||
|
||||
default:
|
||||
displayError('error-undefined');
|
||||
default:
|
||||
displayError('error-undefined');
|
||||
}
|
||||
|
||||
return this.stop();
|
||||
|
|
@ -152,4 +156,4 @@ function displayError(code) {
|
|||
$('.at-pwd-form').before('<div class="at-error"><p></p></div>');
|
||||
}
|
||||
$('.at-error p').text(translated);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue