From 4c6781d6b65e2d32718d0c6cb617f35a7f0ca8b2 Mon Sep 17 00:00:00 2001 From: amalhub Date: Wed, 22 Mar 2017 15:37:16 +0530 Subject: [PATCH] Fixing issue: https://github.com/wso2/carbon-device-mgt/issues/645 , Once the password is changed - Curent user should be immediately logout --- .../cdmf.unit.ui.header.default.user-menu/public/js/user-menu.js | 1 + 1 file changed, 1 insertion(+) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.default.user-menu/public/js/user-menu.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.default.user-menu/public/js/user-menu.js index 93c8a17d24..ecd93a8bc6 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.default.user-menu/public/js/user-menu.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.default.user-menu/public/js/user-menu.js @@ -86,6 +86,7 @@ $(document).ready(function () { $("#change-password-success-link").click(function () { hidePopup(); }); + window.location.href = "/devicemgt/logout"; } }, function (jqXHR) { if (jqXHR.status == 400) {