etyp / meteor-accounts-ldap

A Meteor package for logging in and creating users with LDAP credentials
MIT License
39 stars 23 forks source link

Dirty fail when email not set in ldapResponse. #29

Open conrad-dk opened 7 years ago

conrad-dk commented 7 years ago

ldap_server.js:270 causes an exception if email is not set. This happens too easily and is easy to fix with

{
    resultKey: 'mail',
    profileProperty: 'email'
}

in searchResultsProfileMap. Perhaps state that this is required in the readme?