mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
Fix lint errors.
This commit is contained in:
parent
bd66ea8acc
commit
417dc9dc42
3 changed files with 15 additions and 11 deletions
|
|
@ -40,7 +40,7 @@ Blaze.Template.registerHelper('mentions', new Template('mentions', function() {
|
||||||
const view = this;
|
const view = this;
|
||||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||||
if (!currentBoard) {
|
if (!currentBoard) {
|
||||||
return HTML.Raw("");
|
return HTML.Raw('');
|
||||||
}
|
}
|
||||||
const knowedUsers = currentBoard.members.map((member) => {
|
const knowedUsers = currentBoard.members.map((member) => {
|
||||||
const u = Users.findOne(member.userId);
|
const u = Users.findOne(member.userId);
|
||||||
|
|
|
||||||
|
|
@ -126,16 +126,20 @@ function authentication(instance, email, password) {
|
||||||
: instance.data.defaultAuthenticationMethod.get();
|
: instance.data.defaultAuthenticationMethod.get();
|
||||||
|
|
||||||
switch (authenticationMethod) {
|
switch (authenticationMethod) {
|
||||||
case 'ldap':
|
case 'ldap':
|
||||||
// Use the ldap connection package
|
// Use the ldap connection package
|
||||||
Meteor.loginWithLDAP(email, password, function(error) {
|
Meteor.loginWithLDAP(email, password, function(error) {
|
||||||
if (!error) return FlowRouter.go('/');
|
if (error) {
|
||||||
displayError('error-ldap-login');
|
displayError('error-ldap-login');
|
||||||
});
|
return this.stop();
|
||||||
break;
|
} else {
|
||||||
|
return FlowRouter.go('/');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
displayError('error-undefined');
|
displayError('error-undefined');
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.stop();
|
return this.stop();
|
||||||
|
|
@ -152,4 +156,4 @@ function displayError(code) {
|
||||||
$('.at-pwd-form').before('<div class="at-error"><p></p></div>');
|
$('.at-pwd-form').before('<div class="at-error"><p></p></div>');
|
||||||
}
|
}
|
||||||
$('.at-error p').text(translated);
|
$('.at-error p').text(translated);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -263,6 +263,6 @@ if (Meteor.isServer) {
|
||||||
|
|
||||||
getDefaultAuthenticationMethod() {
|
getDefaultAuthenticationMethod() {
|
||||||
return process.env.DEFAULT_AUTHENTICATION_METHOD;
|
return process.env.DEFAULT_AUTHENTICATION_METHOD;
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue