mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-08 18:53:52 +00:00
Removed clear API password con checkStored route
This commit is contained in:
parent
c16bb2e589
commit
282b7f2640
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user