Update error messages

This commit is contained in:
Sofia Baltzi 2017-10-13 11:41:52 +00:00
parent 47f695315b
commit f5c1809efc
3 changed files with 3 additions and 6 deletions

View File

@ -63,7 +63,6 @@ public class RemindUsernameServlet extends HttpServlet {
}
} catch (LDAPException ldape) {
//TODO create error page
logger.error("Could not find user with email " + formEmail, ldape);
response.sendRedirect("./error.jsp");

View File

@ -52,11 +52,8 @@ public class ResetPasswordServlet extends HttpServlet {
logger.info("password resetted");
} catch (Exception e) {
logger.error("LDAP error" + e);
//TODO
//redirect to helpdesk error page
//request.getSession().setAttribute("message", "Error resetting password.");
//response.sendRedirect("./verify.jsp");
logger.error("LDAP error in resetting password", e);
response.sendRedirect("./error.jsp");
}
}

View File

@ -41,6 +41,7 @@ public class VerificationCodeServlet extends HttpServlet {
if (verificationActions.verificationEntryExists(formUsername, formVerificationCode)) {
//TODO check expiration date if "now" is more than 24h from the date in DB return error message
HttpSession session = request.getSession();
session.setAttribute("username", formUsername);