ARTEMIS-1681 fix hawtio console security issue

This commit is contained in:
Stanislav Knot 2018-02-14 12:48:19 +01:00 committed by Clebert Suconic
parent 646e555148
commit 89967986d6
1 changed files with 7 additions and 1 deletions

View File

@ -155,7 +155,7 @@ var ARTEMIS = (function(ARTEMIS) {
// one-time initialization happens in the run function
// of our module
ARTEMIS.module.run(function(workspace, viewRegistry, helpRegistry, preferencesRegistry, localStorage, jolokia, ARTEMISService, $rootScope) {
ARTEMIS.module.run(function(workspace, viewRegistry, helpRegistry, preferencesRegistry, localStorage, jolokia, ARTEMISService, $rootScope, preLogoutTasks) {
// let folks know we're actually running
ARTEMIS.log.info("plugin running " + jolokia);
@ -297,6 +297,12 @@ var ARTEMIS = (function(ARTEMIS) {
isValid: function (workspace) { return workspace.isTopTabActive("artemis") || workspace.selectionHasDomain(artemisJmxDomain); },
href: function () { return "#/artemis/connections"; }
});
preLogoutTasks.addTask("clearArtemisCredentials", () => {
localStorage.removeItem('artemisUserName');
localStorage.removeItem('artemisPassword');
});
});