Removed clear API password con checkStored route

This commit is contained in:
Jesús Ángel González 2018-03-24 12:11:37 +01:00 committed by Javier Castro
parent c16bb2e589
commit 282b7f2640

View File

@ -81,6 +81,7 @@ module.exports = (server, options) => {
wapi_config.cluster_info.manager = managerName; wapi_config.cluster_info.manager = managerName;
wapi_config.cluster_info.node = response.body.data.node; wapi_config.cluster_info.node = response.body.data.node;
wapi_config.cluster_info.cluster = response.body.data.cluster; wapi_config.cluster_info.cluster = response.body.data.cluster;
wapi_config.password = '****';
reply({ reply({
'statusCode': 200, 'statusCode': 200,
'data': wapi_config 'data': wapi_config
@ -101,6 +102,7 @@ module.exports = (server, options) => {
wapi_config.cluster_info.status = 'disabled'; wapi_config.cluster_info.status = 'disabled';
wapi_config.cluster_info.cluster = 'Disabled'; wapi_config.cluster_info.cluster = 'Disabled';
wapi_config.cluster_info.manager = managerName; wapi_config.cluster_info.manager = managerName;
wapi_config.password = '****';
reply({ reply({
'statusCode': 200, 'statusCode': 200,
'data': wapi_config 'data': wapi_config
@ -124,7 +126,7 @@ module.exports = (server, options) => {
}) })
.catch(error => { .catch(error => {
if(error.code === 'ECONNREFUSED'){ if(error.code === 'ECONNREFUSED'){
wapi_config.password = "You shall not pass"; wapi_config.password = '****';
wapi_config.apiIsDown = true; wapi_config.apiIsDown = true;
reply({ reply({
'statusCode': 200, 'statusCode': 200,