Fix use of npm-config so immutable object is copied before LdapAuth modifies it
Signed-off-by: James Ketrenos <james_gitlab@ketrenos.com>
This commit is contained in:
parent
908f2c64b3
commit
675814e45f
@ -12,7 +12,7 @@ let userDB;
|
|||||||
|
|
||||||
let ldap;
|
let ldap;
|
||||||
if (config.has("ldap.url")) {
|
if (config.has("ldap.url")) {
|
||||||
ldap = new LdapAuth(config.get("ldap"));
|
ldap = new LdapAuth(Object.assign({}, config.get("ldap")));
|
||||||
} else {
|
} else {
|
||||||
ldap = null;
|
ldap = null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user