[Yanel-commits] rev 43778 -
public/yanel/trunk/src/contributions/resources/forgotpw/src/java/org/wyona/yanel/impl/resources/forgotpw
michi at wyona.com
michi at wyona.com
Thu Jul 23 16:43:15 CEST 2009
Author: michi
Date: 2009-07-23 16:43:15 +0200 (Thu, 23 Jul 2009)
New Revision: 43778
Modified:
public/yanel/trunk/src/contributions/resources/forgotpw/src/java/org/wyona/yanel/impl/resources/forgotpw/ForgotPassword.java
Log:
some text fixed and note added re proxy settings
Modified: public/yanel/trunk/src/contributions/resources/forgotpw/src/java/org/wyona/yanel/impl/resources/forgotpw/ForgotPassword.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/forgotpw/src/java/org/wyona/yanel/impl/resources/forgotpw/ForgotPassword.java 2009-07-23 14:38:44 UTC (rev 43777)
+++ public/yanel/trunk/src/contributions/resources/forgotpw/src/java/org/wyona/yanel/impl/resources/forgotpw/ForgotPassword.java 2009-07-23 14:43:15 UTC (rev 43778)
@@ -1,4 +1,4 @@
- /*
+/*
* Copyright 2009 Wyona
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -112,7 +112,7 @@
if(!strVal.equals("success")) {
statusElement.setTextContent(strVal);
} else {
- statusElement.setTextContent("Password change was successful. Please check your email.");
+ statusElement.setTextContent("<p>Password change request was successful.</p><p>Please check your email for further instructions on how to complete your request.</p>");
}
} else if (request.getParameter("pwresetid") != null && !request.getParameter("pwresetid").equals("") && !action.equals(SUBMITNEWPW)){
User usr = findRepoUser(request.getParameter("pwresetid"), totalValidHrs);
@@ -251,13 +251,15 @@
ResetPWExpire pwexp = new ResetPWExpire(userList[i].getID(), new Date().getTime(), guid, userList[i].getEmail());
Map<String, ResetPWExpire> pwHM = getOblivionMap(getEnvironment().getRequest());
pwHM.put(pwexp.getGuid(), pwexp);
+ // TODO: Use proxy settings
+ //String emailStr = "Please go to the following URL to reset password: <https://192.168.1.69:8443/yanel" + request.getServletPath().toString() + "?pwresetid=" + guid + ">.";
String emailStr = "Please go to the following URL to reset password: <" + request.getRequestURL().toString() + "?pwresetid=" + guid + ">.";
log.debug(emailStr);
String emailServer = getResourceConfigProperty("smtpHost");
int port = Integer.parseInt(getResourceConfigProperty("smtpPort"));
String from = getResourceConfigProperty("smtpFrom");
String to = userList[i].getEmail();
- SendMail.send(emailServer, port, from, to, "password reset reset needs your confirmation", emailStr);
+ SendMail.send(emailServer, port, from, to, "Password change request needs your confirmation", emailStr);
String xmlStrVal = generateXML(pwexp);
More information about the Yanel-commits
mailing list