Fix logging for ldap module
This commit is contained in:
parent
1ca27b6b40
commit
b6497b0e86
1 changed files with 3 additions and 2 deletions
|
@ -16,8 +16,9 @@ let LdapStrategy;
|
||||||
try {
|
try {
|
||||||
LdapStrategy = require('passport-ldapjs').Strategy; // eslint-disable-line global-require
|
LdapStrategy = require('passport-ldapjs').Strategy; // eslint-disable-line global-require
|
||||||
} catch (E) {
|
} catch (E) {
|
||||||
// ignore
|
if (config.ldap.enabled) {
|
||||||
console.warn('Module "passport-ldapjs" not installed. LDAP auth will fail.');
|
log.info('LDAP', 'Module "passport-ldapjs" not installed. LDAP auth will fail.');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports.csrfProtection = csrf({
|
module.exports.csrfProtection = csrf({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue