Revision 49199
Added by Katerina Iatropoulou over 6 years ago
VerificationCodeServlet.java | ||
---|---|---|
35 | 35 |
String formVerificationCode = request.getParameter("verification_code"); |
36 | 36 |
|
37 | 37 |
if (verificationActions.verificationEntryExists(formUsername, formVerificationCode)) { |
38 |
//TODO check expiration date if "now" is more than 24h from the date in DB return error message |
|
39 |
//else go to next step resetPassword.jsp |
|
38 | 40 |
response.sendRedirect("./resetPassword.jsp"); |
41 |
printWriter.close(); |
|
39 | 42 |
|
40 | 43 |
} else { |
41 |
response.sendRedirect("./error.jsp");
|
|
44 |
// response.sendRedirect("./error.jsp"); or write a message in the session
|
|
42 | 45 |
} |
43 | 46 |
|
44 |
response.sendRedirect("./resetPassword.jsp"); |
|
45 |
printWriter.close(); |
|
46 | 47 |
} |
47 | 48 |
} |
Also available in: Unified diff
minor cahnges