From c4564fba4b68faf5e8f67785ab712f7d2395475f Mon Sep 17 00:00:00 2001 From: muxator Date: Sat, 2 Nov 2019 23:12:35 +0100 Subject: [PATCH] settings: rename a parameter. No functional changes. Please note that the logic of this functionality is incorrect: this change is in preparation of the next commit, which fixes it. --- src/node/utils/Settings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node/utils/Settings.js b/src/node/utils/Settings.js index 1b2c22109..3d6ca9da4 100644 --- a/src/node/utils/Settings.js +++ b/src/node/utils/Settings.js @@ -637,8 +637,8 @@ exports.reloadSettings = function reloadSettings() { * This is used by the settings.json in the default Dockerfile to eschew * creating an admin user if no password is set. */ - var filteredUsers = _.filter(exports.users, function(user, username) { - if ((user.hasOwnProperty("password")) || user.password !== null) { + var filteredUsers = _.filter(exports.users, function(userProperties, username) { + if ((userProperties.hasOwnProperty("password")) || userProperties.password !== null) { return true; }