From 1ca27b6b404e6e4be181be846c5a97dc9e61b190 Mon Sep 17 00:00:00 2001 From: vladimir Date: Wed, 15 Mar 2017 20:26:54 +0200 Subject: [PATCH] Remove passport-ldapjs from packpage.json and add warning message --- lib/passport.js | 1 + package.json | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/passport.js b/lib/passport.js index 2b6a8359..0a5a0f12 100644 --- a/lib/passport.js +++ b/lib/passport.js @@ -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({ diff --git a/package.json b/package.json index 811c0354..dab0933f 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,6 @@ "npmlog": "^4.0.2", "openpgp": "^2.4.0", "passport": "^0.3.2", - "passport-ldapjs": "^1.0.2", "passport-local": "^1.0.0", "premailer-api": "^1.0.4", "redfour": "^1.0.0",