From 6eed07dd363d3fb1675bc9ac324387bb20c85389 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Wed, 13 Jul 2022 18:57:58 +0530 Subject: [PATCH] UI: Clear configured credentials on configuration reset --- .../monkey_island/cc/ui/src/components/pages/ConfigurePage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js index 154eff52c..d711ab017 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js @@ -236,7 +236,8 @@ class ConfigurePageComponent extends AuthComponent { ).then(() => { this.removePBAfile(API_PBA_WINDOWS, this.setPbaFilenameWindows) this.removePBAfile(API_PBA_LINUX, this.setPbaFilenameLinux) - }); + }) + .then(this.authFetch('/api/propagation-credentials/configured-credentials', {method: 'DELETE'})); }; removePBAfile(apiEndpoint, setFilenameFnc) {