feat: LDAP debug flag

This commit is contained in:
Nick
2019-06-04 22:23:32 -04:00
parent 3d73ff5d42
commit 922f179a90
7 changed files with 18 additions and 12 deletions

View File

@@ -45,6 +45,9 @@ module.exports = {
})
cb(null, user)
} catch (err) {
if (WIKI.config.flags.ldapdebug) {
WIKI.logger.warn('LDAP LOGIN ERROR (c2): ', err)
}
cb(err, null)
}
}