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:
James Ketrenos 2020-02-17 16:17:59 -08:00
parent 908f2c64b3
commit 675814e45f

View File

@ -12,7 +12,7 @@ let userDB;
let ldap;
if (config.has("ldap.url")) {
ldap = new LdapAuth(config.get("ldap"));
ldap = new LdapAuth(Object.assign({}, config.get("ldap")));
} else {
ldap = null;
}