diff --git a/lib/settings.js b/lib/settings.js index f75a48a..c7e2a33 100644 --- a/lib/settings.js +++ b/lib/settings.js @@ -208,6 +208,18 @@ exports.reloadSettings = function reloadSettings() { //we know this setting, so we overwrite it if(exports[i] !== undefined) { + // This check uses old .user and .pass config strings if they exist, and .username, .password don't. + if (i == 'wallet') + { + if (!settings.wallet.hasOwnProperty('username') && settings.wallet.hasOwnProperty('user')) + { + settings.wallet.username = settings.wallet.user; + } + if (!settings.wallet.hasOwnProperty('password') && settings.wallet.hasOwnProperty('pass')) + { + settings.wallet.password = settings.wallet.pass; + } + } exports[i] = settings[i]; } //this setting is unkown, output a warning and throw it away