From adbeb88aabdb65d514e5422f92c60507d6816f57 Mon Sep 17 00:00:00 2001 From: Thumimku Date: Thu, 14 Sep 2023 11:07:41 +0530 Subject: [PATCH] add constant --- .../org/wso2/carbon/ui/AbstractCarbonUIAuthenticator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/org.wso2.carbon.ui/src/main/java/org/wso2/carbon/ui/AbstractCarbonUIAuthenticator.java b/core/org.wso2.carbon.ui/src/main/java/org/wso2/carbon/ui/AbstractCarbonUIAuthenticator.java index dd5f07c91f8..fe296fe4b44 100644 --- a/core/org.wso2.carbon.ui/src/main/java/org/wso2/carbon/ui/AbstractCarbonUIAuthenticator.java +++ b/core/org.wso2.carbon.ui/src/main/java/org/wso2/carbon/ui/AbstractCarbonUIAuthenticator.java @@ -274,8 +274,8 @@ public void onSuccessAdminLogin(HttpServletRequest request, String userName) thr HttpSession session = request.getSession(); String tenantDomain; - if (session.getAttribute("tenantDomain") != null) { - tenantDomain = session.getAttribute("tenantDomain").toString(); + if (session.getAttribute(MultitenantConstants.TENANT_DOMAIN) != null) { + tenantDomain = session.getAttribute(MultitenantConstants.TENANT_DOMAIN).toString(); } else { tenantDomain = MultitenantUtils.getTenantDomain(userName); }