From 282b7f264043897b88213bcc555fa0cd4685e96a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20=C3=81ngel=20Gonz=C3=A1lez?= Date: Sat, 24 Mar 2018 12:11:37 +0100 Subject: [PATCH] Removed clear API password con checkStored route --- server/api/wazuh-api.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/api/wazuh-api.js b/server/api/wazuh-api.js index 0079b4fd9..496e33c36 100644 --- a/server/api/wazuh-api.js +++ b/server/api/wazuh-api.js @@ -81,6 +81,7 @@ module.exports = (server, options) => { wapi_config.cluster_info.manager = managerName; wapi_config.cluster_info.node = response.body.data.node; wapi_config.cluster_info.cluster = response.body.data.cluster; + wapi_config.password = '****'; reply({ 'statusCode': 200, 'data': wapi_config @@ -101,6 +102,7 @@ module.exports = (server, options) => { wapi_config.cluster_info.status = 'disabled'; wapi_config.cluster_info.cluster = 'Disabled'; wapi_config.cluster_info.manager = managerName; + wapi_config.password = '****'; reply({ 'statusCode': 200, 'data': wapi_config @@ -124,7 +126,7 @@ module.exports = (server, options) => { }) .catch(error => { if(error.code === 'ECONNREFUSED'){ - wapi_config.password = "You shall not pass"; + wapi_config.password = '****'; wapi_config.apiIsDown = true; reply({ 'statusCode': 200,