mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-24 18:56:32 -05:00
fix(types): typecast ldap options due to wrong types in ldapjs
The provided types by ldapauth-fork are re-exported from ldapjs. ldapjs is unmaintained by now but since their last update, the ConnectionOptions type seems to not contain the mandatory parameter `url` anymore. Therefore this typecast is needed. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
3261929a2a
commit
3e17edf95d
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ export class LdapService {
|
||||||
tlsOptions: {
|
tlsOptions: {
|
||||||
ca: ldapConfig.tlsCaCerts,
|
ca: ldapConfig.tlsCaCerts,
|
||||||
},
|
},
|
||||||
});
|
} as LdapAuth.Options);
|
||||||
|
|
||||||
auth.once('error', (error: string | Error) => {
|
auth.once('error', (error: string | Error) => {
|
||||||
const exception = this.getLdapException(username, error);
|
const exception = this.getLdapException(username, error);
|
||||||
|
|
Loading…
Reference in a new issue