feat: LDAP debug flag

This commit is contained in:
Nick committed 2019-06-04 22:23:32 -04:00
1 parent 3d73ff5d42
commit 922f179a90
7 files changed
+18 -12

No files matched your search

+5
View File
@@ -44,6 +44,11 @@ module.exports = {
responseResult: graphHelper.generateSuccess('Login success')
}
} catch (err) {
// LDAP Debug Flag
if (args.strategy === 'ldap' && WIKI.config.flags.ldapdebug) {
WIKI.logger.warn('LDAP LOGIN ERROR (c1): ', err)
}
return graphHelper.generateError(err)
}
},
-1
View File
@@ -1,4 +1,3 @@
const _ = require('lodash')
const graphHelper = require('../../helpers/graph')
/* global WIKI */