<%@ include file="/common/taglibs.jsp"%> <%@page import="org.springframework.web.context.request.SessionScope"%> <%@ page import="org.lamsfoundation.lams.util.Configuration"%> <%@ page import="org.lamsfoundation.lams.util.ConfigurationKeys"%> <%@ page import="org.lamsfoundation.lams.web.session.SessionManager"%> <%@ page import="org.lamsfoundation.lams.usermanagement.dto.UserDTO"%> <%=Configuration.get(ConfigurationKeys.FORGOT_YOUR_PASSWORD_LINK_ENABLE)%> <%-- If login param is empty, this is a regular, manual login page. Otherwise it is a just an almost empty redirect page for integrations and LoginAs authentication. --%> <%-- Optional Module Placeholder - do not remove --%> <fmt:message key="title.login.window" /> <%-- This is version for integrations and LoginAs authentication. --%>

<% // invalidate session so a new user can be logged in HttpSession hs = SessionManager.getSession(); if (hs != null) { UserDTO userDTO = (UserDTO) hs.getAttribute("user"); if (userDTO != null) { // remove session from mapping SessionManager.removeSessionByLogin(userDTO.getLogin(), true); } } %>