summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-common/src
diff options
context:
space:
mode:
authorstatta <statta@research.att.com>2019-08-16 12:14:10 -0400
committerstatta <statta@research.att.com>2019-08-17 00:41:46 -0400
commit8429bcdf93e653061e972689774bbab3966742e2 (patch)
treec1487fd5b645f7e7f40300e1639a8c7aec21874f /ecomp-sdk/epsdk-app-common/src
parentbe21387983164a03a7b15361f4cc02917d9dd888 (diff)
Migrating screens to Angular 7
Issue-ID: PORTAL-706 Change-Id: Ic3feb4019923040aafe6e9a97a60b41165be8b40 Signed-off-by: statta <statta@research.att.com>
Diffstat (limited to 'ecomp-sdk/epsdk-app-common/src')
-rw-r--r--ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/ProfileController.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/ProfileController.java b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/ProfileController.java
index 5c96e169..97c156b5 100644
--- a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/ProfileController.java
+++ b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/ProfileController.java
@@ -188,6 +188,9 @@ public class ProfileController extends RestrictedBaseController {
user.setTimeZoneId(Long.parseLong(selectedTimeZone));
}
service.saveUser(user);
+ HttpSession session = request.getSession(true);
+ session.setAttribute(SystemProperties.getProperty(SystemProperties.USER_ATTRIBUTE_NAME), user);
+
logger.info(EELFLoggerDelegate.auditLogger, "Save profile for user {}", profileId);
response.setCharacterEncoding(UTF8);
response.setContentType(APPLICATION_JSON);