Revision 49409
Added by Sofia Baltzi over 6 years ago
modules/dnet-openaire-users/trunk/src/main/java/eu/dnetlib/openaire/usermanagement/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 |
} |
modules/dnet-openaire-users/trunk/src/main/webapp/resetPassword.jsp | ||
---|---|---|
1 | 1 |
<!DOCTYPE html> |
2 | 2 |
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> |
3 |
<%String name=(String)request.getAttribute("name");
|
|
4 |
out.print("your name"+name);%>
|
|
3 |
<%--<%String name=(String)request.getAttribute("name");--%>
|
|
4 |
<%--out.print("your name"+name);%>--%>
|
|
5 | 5 |
<html lang="en-gb" dir="ltr" vocab="http://schema.org/"> |
6 | 6 |
<head> |
7 | 7 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
Also available in: Unified diff
Remove username from session