Change mail result path in case of port=80
This commit is contained in:
parent
7aecf6e2cd
commit
11f4c9d8f3
|
@ -76,8 +76,13 @@ public class ForgotPasswordServlet extends HttpServlet {
|
|||
String serverName = request.getServerName();
|
||||
int portNumber = request.getServerPort();
|
||||
String contextPath = request.getContextPath();
|
||||
String resultPath;
|
||||
|
||||
String resultPath = scheme + "://" +serverName + ":" +portNumber + contextPath + "/verify.jsp";
|
||||
if (portNumber == 80) {
|
||||
resultPath = scheme + "://" + serverName + contextPath + "/verify.jsp";
|
||||
} else {
|
||||
resultPath = scheme + "://" + serverName + ":" + portNumber + contextPath + "/verify.jsp";
|
||||
}
|
||||
|
||||
String verificationCodeMsg = "<p>Hello,</p>" +
|
||||
"<p> A request has been made to reset your OpenAIRE account password. To reset your " +
|
||||
|
|
|
@ -84,9 +84,14 @@ public class RegisterServlet extends HttpServlet {
|
|||
String serverName = request.getServerName();
|
||||
int portNumber = request.getServerPort();
|
||||
String contextPath = request.getContextPath();
|
||||
String resultPath;
|
||||
|
||||
String resultPath = scheme + "://" +serverName + ":" +portNumber + contextPath + "/activate.jsp";
|
||||
|
||||
if (portNumber == 80) {
|
||||
resultPath = scheme + "://" + serverName + contextPath + "/activate.jsp";
|
||||
} else {
|
||||
resultPath = scheme + "://" +serverName + ":" +portNumber + contextPath + "/activate.jsp";
|
||||
}
|
||||
|
||||
String verificationCodeMsg = "<p>Hello " + username + ",</p>" +
|
||||
"<p> A request has been made to verify your email and activate your OpenAIRE account. To activate your " +
|
||||
"account, you will need to submit your username and this activation code in order to verify that the" +
|
||||
|
|
Loading…
Reference in New Issue