Minor changes.

This commit is contained in:
Julien Fontanet 2015-06-16 17:45:44 +02:00
parent 27df44bf44
commit 124f7f43ab
2 changed files with 5 additions and 6 deletions

View File

@ -97,11 +97,11 @@ class AuthLdap {
}
// Try to find an entry which can be bind with the given password.
for (let entry of entries) {
for (const entry of entries) {
try {
await bind(entry.objectName, password)
return { username }
} catch (error) {}
} catch (_) {}
}
throw null

View File

@ -1,12 +1,11 @@
/* eslint-env mocha */
import authLdap from './'
import expect from 'must'
import {assert, spy} from 'sinon'
import sourceMapSupport from 'source-map-support'
sourceMapSupport.install()
// ===================================================================
import authLdap from './'
// ===================================================================