NIHVIVO-1832 JSPs that call <vitro:confirmLoginStatus> must be recorded as restricted pages, just like Servlets that call VitroHttpServlet.checkLoginStatus(). That way we won't attempt to stay on those pages if the user logs out.
This commit is contained in:
parent
aeff100428
commit
404ee53a91
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,7 @@ import org.apache.commons.logging.LogFactory;
|
||||||
|
|
||||||
import edu.cornell.mannlib.vedit.beans.LoginStatusBean;
|
import edu.cornell.mannlib.vedit.beans.LoginStatusBean;
|
||||||
import edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet;
|
import edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet;
|
||||||
|
import edu.cornell.mannlib.vitro.webapp.controller.authenticate.LogoutRedirector;
|
||||||
import edu.cornell.mannlib.vitro.webapp.filters.VitroRequestPrep;
|
import edu.cornell.mannlib.vitro.webapp.filters.VitroRequestPrep;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -69,6 +70,8 @@ public class ConfirmLoginStatus extends BodyTagSupport {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int doEndTag() throws JspException {
|
public int doEndTag() throws JspException {
|
||||||
|
LogoutRedirector.recordRestrictedPageUri(getRequest());
|
||||||
|
|
||||||
LoginStatusBean loginBean = LoginStatusBean.getBean(getRequest());
|
LoginStatusBean loginBean = LoginStatusBean.getBean(getRequest());
|
||||||
boolean isLoggedIn = loginBean.isLoggedInAtLeast(level);
|
boolean isLoggedIn = loginBean.isLoggedInAtLeast(level);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue