- Add LDAP. In progress.

Thanks to maximest-pierre, Akuket and xet.

Related #119
This commit is contained in:
Lauri Ojansivu 2018-10-03 11:50:52 +03:00
parent 18a1d4c5c6
commit 288800eafc
9 changed files with 139 additions and 4 deletions

View file

@ -17,3 +17,13 @@ Meteor.publish('user-admin', function() {
},
});
});
Meteor.publish('user-connection-method', function(match) {
check(match, String);
return Users.find({$or: [{email: match}, {username: match}]}, {
fields: {
ldap: 1,
},
});
});