CUSTOM authentication fix for docker

CUSTOM authentication fix for docker
This commit is contained in:
Shahana Farooqui 2019-10-16 12:52:10 -04:00
parent 1485db3eb0
commit cc4efaf35c
6 changed files with 10 additions and 8 deletions

View File

@ -9,5 +9,5 @@
<link rel="stylesheet" href="styles.41a6644c686ce68dce93.css"></head>
<body>
<rtl-app></rtl-app>
<script src="runtime.c588f78aaf36ce63d59d.js"></script><script src="polyfills-es5.763f4f23e8aee5ec234d.js" nomodule></script><script src="polyfills.e59b6f9dc696bd89cf7f.js"></script><script src="main.a3cb129dcb290bbeab73.js"></script></body>
<script src="runtime.c588f78aaf36ce63d59d.js"></script><script src="polyfills-es5.763f4f23e8aee5ec234d.js" nomodule></script><script src="polyfills.e59b6f9dc696bd89cf7f.js"></script><script src="main.dd4cb04f0c86128fd08d.js"></script></body>
</html>

File diff suppressed because one or more lines are too long

View File

@ -219,7 +219,7 @@ connect.validateSingleNodeConfig = (config) => {
}
if (undefined !== process.env.RTL_PASS) {
common.rtl_pass = process.env.RTL_PASS;
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) {
@ -270,7 +270,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');

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "rtl",
"version": "0.5.3-beta",
"version": "0.5.4-beta",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "rtl",
"version": "0.5.3-beta",
"version": "0.5.4-beta",
"license": "MIT",
"scripts": {
"ng": "ng",

View File

@ -1 +1 @@
export const VERSION = '0.5.3-beta';
export const VERSION = '0.5.4-beta';