Author: jleroux
Date: Mon May 9 19:03:56 2016
New Revision: 1743027
URL:
http://svn.apache.org/viewvc?rev=1743027&view=revLog:
Improves Amardeep's patch for OFBIZ-7058 - "New password set in forgot password workflow not works sometimes and gives error"
Modified:
ofbiz/trunk/applications/securityext/src/org/ofbiz/securityext/login/LoginEvents.java
Modified: ofbiz/trunk/applications/securityext/src/org/ofbiz/securityext/login/LoginEvents.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/securityext/src/org/ofbiz/securityext/login/LoginEvents.java?rev=1743027&r1=1743026&r2=1743027&view=diff==============================================================================
--- ofbiz/trunk/applications/securityext/src/org/ofbiz/securityext/login/LoginEvents.java (original)
+++ ofbiz/trunk/applications/securityext/src/org/ofbiz/securityext/login/LoginEvents.java Mon May 9 19:03:56 2016
@@ -266,14 +266,12 @@ public class LoginEvents {
So to fix it, done Url encoding of passwordToSend.
*/
passwordToSend = URLEncoder.encode(passwordToSend, "UTF-8");
- } catch (GenericEntityException e) {
+ } catch (GenericEntityException | UnsupportedEncodingException e) {
Debug.logWarning(e, "", module);
Map<String, String> messageMap = UtilMisc.toMap("errorMessage", e.toString());
errMsg = UtilProperties.getMessage(resource, "loginevents.error_accessing_password", messageMap, UtilHttp.getLocale(request));
request.setAttribute("_ERROR_MESSAGE_", errMsg);
return "error";
- } catch (UnsupportedEncodingException e) {
- e.printStackTrace();
}
StringBuilder emails = new StringBuilder();