[OFBiz] SVN: r6126 - trunk/applications/ecommerce/script/org/ofbiz/ecommerce/customer

jonesde at svn.ofbiz.org jonesde at svn.ofbiz.org
Tue Nov 15 03:24:48 EST 2005


Author: jonesde
Date: 2005-11-15 02:24:46 -0600 (Tue, 15 Nov 2005)
New Revision: 6126

Modified:
   trunk/applications/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml
Log:
Made changes recommended by Manuel Meyer to fix problem with encrypting password twice; Jira #OFBIZ-574

Modified: trunk/applications/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml
===================================================================
--- trunk/applications/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml	2005-11-15 07:59:26 UTC (rev 6125)
+++ trunk/applications/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml	2005-11-15 08:24:46 UTC (rev 6126)
@@ -286,12 +286,6 @@
         <!-- now that everything is validated & setup, check to see if there are errors, then call the services -->
         <check-errors/>
 
-        <!-- If password encryption is enabled, encrpyt it now -->
-        <call-bsh><![CDATA[
-            boolean useEncryption = "true".equals(org.ofbiz.base.util.UtilProperties.getPropertyValue("security.properties", "password.encrypt"));
-            if (useEncryption) { newUserLogin.set("currentPassword", org.ofbiz.base.crypto.HashCrypt.getDigestHash((String) newUserLogin.get("currentPassword"))); }
-        ]]></call-bsh>
-
         <set-service-fields map-name="personContext" service-name="createPersonAndUserLogin" to-map-name="personUserLoginContext"/>
         <set-service-fields map-name="newUserLogin" service-name="createPersonAndUserLogin" to-map-name="personUserLoginContext"/>
         <field-to-field field-name="currentPassword" map-name="newUserLogin" to-field-name="currentPasswordVerify" to-map-name="personUserLoginContext"/>



More information about the Svn mailing list