Merge branch 'master' into UX

pull/260/head
Shahana Farooqui 5 years ago
commit 17c3d1ade1

@ -7,6 +7,7 @@ var upperCase = require('upper-case');
var crypto = require('crypto');
var hash = crypto.createHash('sha256');
var logger = require('./logger');
var rpcPass = '';
exports.authenticateUser = (req, res, next) => {
if(+common.rtl_sso) {
@ -72,13 +73,14 @@ exports.authenticateUser = (req, res, next) => {
});
} else {
const jsonLNDConfig = ini.parse(data);
var rpcPass = '';
if (undefined !== jsonLNDConfig.Bitcoind && undefined !== jsonLNDConfig.Bitcoind['bitcoind.rpcpass']) {
rpcPass = jsonLNDConfig.Bitcoind['bitcoind.rpcpass'];
} else if (undefined !== jsonLNDConfig['bitcoind.rpcpass']) {
rpcPass = jsonLNDConfig['bitcoind.rpcpass'];
if (rpcPass === '') {
if (undefined !== jsonLNDConfig.Bitcoind && undefined !== jsonLNDConfig.Bitcoind['bitcoind.rpcpass']) {
rpcPass = jsonLNDConfig.Bitcoind['bitcoind.rpcpass'];
} else if (undefined !== jsonLNDConfig['bitcoind.rpcpass']) {
rpcPass = jsonLNDConfig['bitcoind.rpcpass'];
}
rpcPass = hash.update(rpcPass).digest('hex');
}
rpcPass = hash.update(rpcPass).digest('hex');
if (rpcPass === password) {
var rpcUser = (undefined !== jsonLNDConfig.Bitcoind && undefined !== jsonLNDConfig.Bitcoind['bitcoind.rpcuser']) ? jsonLNDConfig.Bitcoind['bitcoind.rpcuser'] : '';
rpcUser = (rpcUser === '' && undefined !== jsonLNDConfig['bitcoind.rpcuser']) ? jsonLNDConfig['bitcoind.rpcuser'] : '';

@ -41,7 +41,7 @@
- [ ] DescribeGraph
- [x] GetChanInfo
- [x] GetNodeInfo
- [ ] QueryRoutes
- [x] QueryRoutes
- [x] GetNetworkInfo
- [ ] StopDaemon
- [ ] SubscribeChannelGraph
@ -52,6 +52,6 @@
- [x] ExportChannelBackup
- [x] ExportAllChannelBackups
- [x] VerifyChanBackup
- [ ] RestoreChannelBackups
- [x] RestoreChannelBackups
- [ ] SubscribeChannelBackups
- [ ] Messages

Loading…
Cancel
Save