Search in sources :

Example 1 with MCRLogin

use of org.mycore.frontend.support.MCRLogin in project mycore by MyCoRe-Org.

the class MCRContainerLoginFormServlet method think.

/* (non-Javadoc)
     * @see org.mycore.frontend.servlets.MCRServlet#think(org.mycore.frontend.servlets.MCRServletJob)
     */
@Override
protected void think(MCRServletJob job) throws Exception {
    MCRSession mcrSession = MCRSessionMgr.getCurrentSession();
    MCRUserInformation userInformation = mcrSession.getUserInformation();
    MCRLogin login = new MCRLogin(userInformation, getFormAction());
    login.getForm().getInput().addAll(Arrays.asList(getUserNameField(), getPasswordField()));
    job.getRequest().setAttribute(LOGIN_ATTR, new MCRJAXBContent<>(MCRLogin.getContext(), login));
}
Also used : MCRLogin(org.mycore.frontend.support.MCRLogin) MCRSession(org.mycore.common.MCRSession) MCRUserInformation(org.mycore.common.MCRUserInformation)

Aggregations

MCRSession (org.mycore.common.MCRSession)1 MCRUserInformation (org.mycore.common.MCRUserInformation)1 MCRLogin (org.mycore.frontend.support.MCRLogin)1