feat: LDAP debug flag
This commit is contained in:
@@ -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,4 +1,3 @@
|
||||
const _ = require('lodash')
|
||||
const graphHelper = require('../../helpers/graph')
|
||||
|
||||
/* global WIKI */
|
||||
|
Reference in New Issue
Block a user