feat(test): throw an error when authentication fails
This commit is contained in:
parent
47991b7d1a
commit
9b5fac9e2b
@ -182,6 +182,10 @@ class AuthLdap {
|
||||
return this._authenticate({
|
||||
username,
|
||||
password
|
||||
}).then(result => {
|
||||
if (result === null) {
|
||||
throw new Error('could not authenticate user')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user