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));
}
Aggregations