Revision 49409
Added by Sofia Baltzi over 6 years ago
ResetPasswordServlet.java | ||
---|---|---|
41 | 41 |
|
42 | 42 |
HttpSession session = request.getSession(); |
43 | 43 |
String username = (String) session.getAttribute("username"); |
44 |
|
|
44 |
|
|
45 | 45 |
String password = request.getParameter("password"); |
46 | 46 |
String confirmPassword = request.getParameter("password_conf"); |
47 | 47 |
|
... | ... | |
65 | 65 |
} |
66 | 66 |
} |
67 | 67 |
|
68 |
session.removeAttribute("username"); |
|
68 | 69 |
response.sendRedirect("./success.jsp"); |
69 | 70 |
printWriter.close(); |
70 | 71 |
} |
Also available in: Unified diff
Remove username from session