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

@@ -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)
}
},

View File

@@ -1,4 +1,3 @@
const _ = require('lodash')
const graphHelper = require('../../helpers/graph')
/* global WIKI */