Skip to content

Commit

Permalink
SAK-30485 Add property to enable/disable logout confirmation message.
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjmerono committed Mar 10, 2016
1 parent 3df4ac4 commit 05add93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@
# DEFAULT: LEC
# portal.use.sectionTitle.preferredCategory=TUT

# SAK-30485 - Enable logout confirmation
# DEFAULT: false
# portal.logout.confirmation=true

# ########################################################################
# GATEWAY SITE
# ########################################################################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1858,7 +1858,7 @@ public void includeLogin(PortalRenderContext rcontext, HttpServletRequest req,
// since we are doing logout, cancel top.login
topLogin = false;

logoutWarningMessage = rloader.getString("sit_logout_warn");
logoutWarningMessage = ServerConfigurationService.getBoolean("portal.logout.confirmation",false)?rloader.getString("sit_logout_warn"):"";
}
rcontext.put("userIsLoggedIn", session.getUserId() != null);
rcontext.put("loginTopLogin", Boolean.valueOf(topLogin));
Expand Down

0 comments on commit 05add93

Please sign in to comment.