Project

General

Profile

« Previous | Next » 

Revision 49412

Added by Sofia Baltzi over 6 years ago

Fix exceptions and errors

View differences:

VerificationCodeServlet.java
41 41

  
42 42
        if (verificationActions.verificationEntryExists(formUsername, formVerificationCode)) {
43 43
            //TODO check expiration date if "now" is more than 24h from the date in DB return error message
44
            //else go to next step resetPassword.jsp
45
//            request.setAttribute("username", formUsername);
46
//            RequestDispatcher rd = getServletContext().getRequestDispatcher("/resetPassword.jsp");
47
//            try {
48
//                rd.forward(request, response);
49
//            } catch (ServletException e) {
50
//               logger.info("Dispatcher error" + e);
51
//            }
52

  
53 44
            HttpSession session = request.getSession();
54 45
            session.setAttribute("username", formUsername);
55 46

  

Also available in: Unified diff