Skip to content

Commit

Permalink
add constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Thumimku committed Sep 14, 2023
1 parent ac44013 commit adbeb88
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit adbeb88

Please sign in to comment.