mirror of
https://github.com/directus/directus.git
synced 2026-01-25 17:58:09 -05:00
Fix LDAP race condition (#9993)
This commit is contained in:
@@ -295,12 +295,12 @@ export class LDAPAuthDriver extends AuthDriver {
|
||||
});
|
||||
|
||||
client.bind(user.external_identifier!, password, (err: Error | null) => {
|
||||
client.destroy();
|
||||
if (err) {
|
||||
reject(handleError(err));
|
||||
return;
|
||||
} else {
|
||||
resolve();
|
||||
}
|
||||
resolve();
|
||||
client.destroy();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user