Update error messages
This commit is contained in:
parent
47f695315b
commit
f5c1809efc
|
@ -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");
|
||||
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue