Fix log.warn in ldap

This commit is contained in:
Pavel Djundik 2018-02-23 17:52:16 +02:00 committed by GitHub
parent 5bac385a75
commit 7f82b440a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ function advancedLdapAuth(user, password, callback) {
} else { } else {
ldapclient.search(base, searchOptions, function(err2, res) { ldapclient.search(base, searchOptions, function(err2, res) {
if (err2) { if (err2) {
log.warning(`User not found: ${userDN}`); log.warn(`User not found: ${userDN}`);
ldapclient.unbind(); ldapclient.unbind();
callback(false); callback(false);
} else { } else {