diff --git a/angular/index.html b/angular/index.html index 5f890234..c6c11b20 100644 --- a/angular/index.html +++ b/angular/index.html @@ -12,5 +12,5 @@ - + diff --git a/connect.js b/connect.js index 3d061eb3..69fac5ec 100644 --- a/connect.js +++ b/connect.js @@ -220,8 +220,8 @@ connect.validateSingleNodeConfig = (config) => { } if (undefined !== process.env.RTL_PASS) { - common.rtl_pass = process.env.RTL_PASS; - } else if (config.Authentication.rtlPassHashed !== '' && undefined !== config.Authentication.rtlPassHashed) { + common.rtl_pass = hash.update(process.env.RTL_PASS).digest('hex'); + } else if (config.Authentication.rtlPassHashed !== '' && undefined !== config.Authentication.rtlPassHashed) { common.rtl_pass = config.Authentication.rtlPassHashed; } else if (config.Authentication.rtlPass !== '' && undefined !== config.Authentication.rtlPass) { common.rtl_pass = connect.convertCustomToHash('SINGLE'); @@ -271,7 +271,9 @@ connect.validateSingleNodeConfig = (config) => { connect.validateMultiNodeConfig = (config) => { common.node_auth_type = 'CUSTOM'; - if (config.multiPassHashed !== '' && undefined !== config.multiPassHashed) { + if (undefined !== process.env.RTL_PASS) { + common.rtl_pass = hash.update(process.env.RTL_PASS).digest('hex'); + } else if (config.multiPassHashed !== '' && undefined !== config.multiPassHashed) { common.rtl_pass = config.multiPassHashed; } else if (config.multiPass !== '' && undefined !== config.multiPass) { common.rtl_pass = connect.convertCustomToHash('MULTI'); diff --git a/package-lock.json b/package-lock.json index 4e6595e5..ff5523a8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "rtl", - "version": "0.5.3-beta", + "version": "0.5.4-beta", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index fe9843dd..f11e5e67 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rtl", - "version": "0.5.3-beta", + "version": "0.5.4-beta", "license": "MIT", "scripts": { "ng": "ng", diff --git a/src/environments/version.ts b/src/environments/version.ts index 4160fa9a..07eb652a 100644 --- a/src/environments/version.ts +++ b/src/environments/version.ts @@ -1 +1 @@ -export const VERSION = '0.5.3-beta'; \ No newline at end of file +export const VERSION = '0.5.4-beta'; \ No newline at end of file