Skip to content

Commit aadeddc

Browse files
committed
Update ApiServer.java
1 parent 17b20fd commit aadeddc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/src/main/java/com/cloud/api/ApiServer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,9 @@ private ResponseObject createLoginResponse(HttpSession session) {
12101210
if (ApiConstants.FIRST_LOGIN.equalsIgnoreCase(attrName)) {
12111211
response.setFirstLogin(attrObj.toString());
12121212
}
1213+
if (ApiConstants.EXTERNAL_ENTITY.equalsIgnoreCase(attrName)) {
1214+
response.setExternalEntity(attrObj.toString());
1215+
}
12131216
}
12141217
}
12151218
response.setResponseName("loginresponse");
@@ -1287,6 +1290,7 @@ public ResponseObject loginUser(final HttpSession session, final String username
12871290
session.setAttribute("lastname", userAcct.getLastname());
12881291
session.setAttribute("accountobj", account);
12891292
session.setAttribute("account", account.getAccountName());
1293+
session.setAttribute(ApiConstants.EXTERNAL_ENTITY, userAcct.getExternalEntity());
12901294

12911295
session.setAttribute("domainid", account.getDomainId());
12921296
final DomainVO domain = (DomainVO)domainMgr.getDomain(account.getDomainId());

0 commit comments

Comments
 (0)