Minor changes.
This commit is contained in:
parent
27df44bf44
commit
124f7f43ab
@ -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
|
||||
|
@ -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 './'
|
||||
|
||||
// ===================================================================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user