Removed RTL_PASS from env

Removed RTL_PASS from env
pull/260/head
Shahana Farooqui 4 years ago
parent 6065a27c50
commit d26e9fe607

@ -12,5 +12,5 @@
<link rel="stylesheet" href="styles.90ee7bcb73e8367b2a29.css"></head>
<body>
<rtl-app></rtl-app>
<script src="runtime.bd15680a9b84bab2ef08.js" defer></script><script src="polyfills-es5.37b2eeccc22c1df73ce7.js" nomodule defer></script><script src="polyfills.f1c3d2a0bcdfc4e93ca8.js" defer></script><script src="main.83987fd3a7fe4528412f.js" defer></script></body>
<script src="runtime.bd15680a9b84bab2ef08.js" defer></script><script src="polyfills-es5.37b2eeccc22c1df73ce7.js" nomodule defer></script><script src="polyfills.f1c3d2a0bcdfc4e93ca8.js" defer></script><script src="main.9b4e9790c9a8eba28ff9.js" defer></script></body>
</html>

File diff suppressed because one or more lines are too long

@ -99,9 +99,7 @@ connect.replacePasswordWithHash = (multiPassHashed) => {
connect.validateNodeConfig = (config) => {
if(!+config.SSO.rtlSSO) {
if (process.env.RTL_PASS) {
common.rtl_pass = hash.update(process.env.RTL_PASS).digest('hex');
} else if (config.multiPassHashed !== '' && config.multiPassHashed) {
if (config.multiPassHashed !== '' && config.multiPassHashed) {
common.rtl_pass = config.multiPassHashed;
} else if (config.multiPass !== '' && config.multiPass) {
common.rtl_pass = connect.replacePasswordWithHash(hash.update(config.multiPass).digest('hex'));

@ -39,7 +39,6 @@ The parameters can be configured via RTL-Config.json file or through environment
;The environment variable can also be used for all of the above configurations except the UI settings.
;If the environment variables are set, it will take precedence over the parameters in the RTL-Config.json file.
PORT (port number for the rtl node server, default 3000)
RTL_PASS (Password for RTL custom authentication)
LN_IMPLEMENTATION (LND, CLT. Default 'LND')
LN_SERVER_URL (LND server URL for REST APIs, default https://localhost:8080/v1) OR LN_SERVER_URL (LN server URL for LNP REST APIs)
CONFIG_PATH (Full path of the lnd.conf file including the file name) OR CONFIG_PATH (Full path of the LNP .conf file including the file name)

@ -4,10 +4,6 @@
<fa-icon [icon]="faKey" class="page-title-img mr-1"></fa-icon>
<span class="page-title">Reset Password</span>
</div>
<div fxFlex="100" class="alert alert-info">
<fa-icon [icon]="faInfoCircle" class="mr-1 alert-icon"></fa-icon>
<span>Password set by the environment variable can not be reset from this page.</span>
</div>
<div fxLayout="row">
<div fxLayout="column" fxFlex="100" fxFlex.gt-sm="100" fxLayoutAlign="space-between stretch" class="mt-2">
<mat-form-field>

@ -1,6 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { Store } from '@ngrx/store';
import { faInfoCircle, faKey } from '@fortawesome/free-solid-svg-icons';
import { faKey } from '@fortawesome/free-solid-svg-icons';
import * as sha256 from 'sha256';
import * as fromRTLReducer from '../../../../store/rtl.reducers';
@ -13,7 +13,6 @@ import * as RTLActions from '../../../../store/rtl.actions';
})
export class AuthSettingsComponent implements OnInit {
public faKey = faKey;
public faInfoCircle = faInfoCircle;
public oldPassword = '';
public newPassword = '';
public confirmPassword = '';

@ -288,7 +288,7 @@ export class RTLEffects implements OnDestroy {
rootStore.selNode.settings.currencyUnits = [...CURRENCY_UNITS, rootStore.selNode.settings.currencyUnit];
this.store.dispatch(new RTLActions.SetSelelectedNode({lnNode: rootStore.selNode, isInitialSetup: true}))
if(action.payload.initialPass) {
this.store.dispatch(new RTLActions.OpenSnackBar('Reset your password before moving forward.'));
this.store.dispatch(new RTLActions.OpenSnackBar('Reset your password.'));
this.router.navigate(['/settings'], { state: { loadTab: 'authSettings' }});
}
}),

Loading…
Cancel
Save