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.
This commit is contained in:
muxator 2019-11-02 23:12:35 +01:00
parent 9ee131ca1f
commit c4564fba4b
1 changed files with 2 additions and 2 deletions

View File

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