diff options
Diffstat (limited to 'ecomp-sdk/epsdk-core/src/main')
2 files changed, 3 insertions, 5 deletions
diff --git a/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/auth/LoginStrategy.java b/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/auth/LoginStrategy.java index 6a643eac..a1a415c0 100644 --- a/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/auth/LoginStrategy.java +++ b/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/auth/LoginStrategy.java @@ -62,7 +62,7 @@ import org.springframework.web.util.WebUtils; public abstract class LoginStrategy { - public static final String DEFAULT_SUCCESS_VIEW = "welcome"; + public static final String DEFAULT_SUCCESS_VIEW = "v2"; public static final String DEFAULT_FAILURE_VIEW = "login"; private static final String JSESSIONID = "JSESSIONID"; @@ -137,4 +137,4 @@ public abstract class LoginStrategy { this.loginService = loginService; } -} +}
\ No newline at end of file diff --git a/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/LoginServiceCentralizedImpl.java b/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/LoginServiceCentralizedImpl.java index 95ca3de7..09fb374a 100644 --- a/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/LoginServiceCentralizedImpl.java +++ b/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/LoginServiceCentralizedImpl.java @@ -127,9 +127,7 @@ public class LoginServiceCentralizedImpl extends FusionService implements LoginS if (appuser == null && userHasRoleFunctions(user)) { createUserIfNecessary(user); } else { - if(appuser != null) { - appuser.setLastLoginDate(new Date()); - } + appuser.setLastLoginDate(new Date()); // update the last logged in date for the user dataAccessService.saveDomainObject(appuser, additionalParams); |