Fix LDAP race condition (#9993)

This commit is contained in:
Aiden Foxx
2021-11-23 15:37:55 +01:00
committed by GitHub
parent 10eaba2f32
commit bd551ea9e4

View File

@@ -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();
});
});
}