Remove passport-ldapjs from packpage.json and add warning message

This commit is contained in:
vladimir 2017-03-15 20:26:54 +02:00
parent 2e5def404f
commit 1ca27b6b40
2 changed files with 1 additions and 1 deletions

View file

@ -17,6 +17,7 @@ try {
LdapStrategy = require('passport-ldapjs').Strategy; // eslint-disable-line global-require
} catch (E) {
// ignore
console.warn('Module "passport-ldapjs" not installed. LDAP auth will fail.');
}
module.exports.csrfProtection = csrf({