Revision 51094
Added by Sofia Baltzi about 6 years ago
modules/dnet-openaire-users/trunk/src/main/java/eu/dnetlib/openaire/usermanagement/ForgotPasswordServlet.java | ||
---|---|---|
76 | 76 |
String serverName = request.getServerName(); |
77 | 77 |
int portNumber = request.getServerPort(); |
78 | 78 |
String contextPath = request.getContextPath(); |
79 |
String resultPath; |
|
79 | 80 |
|
80 |
String resultPath = scheme + "://" +serverName + ":" +portNumber + contextPath + "/verify.jsp"; |
|
81 |
if (portNumber == 80) { |
|
82 |
resultPath = scheme + "://" + serverName + contextPath + "/verify.jsp"; |
|
83 |
} else { |
|
84 |
resultPath = scheme + "://" + serverName + ":" + portNumber + contextPath + "/verify.jsp"; |
|
85 |
} |
|
81 | 86 |
|
82 | 87 |
String verificationCodeMsg = "<p>Hello,</p>" + |
83 | 88 |
"<p> A request has been made to reset your OpenAIRE account password. To reset your " + |
modules/dnet-openaire-users/trunk/src/main/java/eu/dnetlib/openaire/usermanagement/RegisterServlet.java | ||
---|---|---|
84 | 84 |
String serverName = request.getServerName(); |
85 | 85 |
int portNumber = request.getServerPort(); |
86 | 86 |
String contextPath = request.getContextPath(); |
87 |
String resultPath; |
|
87 | 88 |
|
88 |
String resultPath = scheme + "://" +serverName + ":" +portNumber + contextPath + "/activate.jsp"; |
|
89 |
|
|
89 |
if (portNumber == 80) { |
|
90 |
resultPath = scheme + "://" + serverName + contextPath + "/activate.jsp"; |
|
91 |
} else { |
|
92 |
resultPath = scheme + "://" +serverName + ":" +portNumber + contextPath + "/activate.jsp"; |
|
93 |
} |
|
94 |
|
|
90 | 95 |
String verificationCodeMsg = "<p>Hello " + username + ",</p>" + |
91 | 96 |
"<p> A request has been made to verify your email and activate your OpenAIRE account. To activate your " + |
92 | 97 |
"account, you will need to submit your username and this activation code in order to verify that the" + |
Also available in: Unified diff
Change mail result path in case of port=80