return;
}
// OK, now we are sure we got all the required fields
m_logger.info("Logon request for user [" + username + "].");
Authenticator authn = new Authenticator(username, password);
if (authn.authenticate()) {
p_request.getSession().removeAttribute(CommonConstants.NICK_SESSION_ATTR);
p_request.getSession().setAttribute(CommonConstants.USER_SESSION_ATTR, authn.getUser());
getServletContext().getRequestDispatcher(SUCCESS_PAGE).forward(p_request, p_response);
}
else {
m_logger.warn("Authentication failed for user [" + username + "].");
p_request.setAttribute(CommonConstants.ERROR_REQUEST_ATTR, "L'authentification a échoué.");