You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2012/04/19 01:49:04 UTC

svn commit: r1327739 - /ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTests.xml

Author: doogie
Date: Wed Apr 18 23:49:04 2012
New Revision: 1327739

URL: http://svn.apache.org/viewvc?rev=1327739&view=rev
Log:
FIX: UserLogin.currentPassword should be treated as opaque, so don't do any explicit compares against it.

Modified:
    ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTests.xml

Modified: ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTests.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTests.xml?rev=1327739&r1=1327738&r2=1327739&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTests.xml (original)
+++ ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTests.xml Wed Apr 18 23:49:04 2012
@@ -122,15 +122,9 @@ under the License.
             <field-map field-name="userLoginId" from-field="partyUserLogin.userLoginId"/>
             <field-map field-name="partyId" from-field="partyId"/>
         </entity-one>
-        <!-- get the encrypted password -->
-        <call-class-method method-name="getHashType" class-name="org.ofbiz.common.login.LoginServices" ret-field="hashType"/>
-        <call-class-method method-name="getDigestHash" class-name="org.ofbiz.base.crypto.HashCrypt" ret-field="newPasswordHash">
-            <field field="serviceCtx.newPassword" type="java.lang.String"/>
-            <field field="hashType" type="java.lang.String"/>
-        </call-class-method>
         <assert>
             <not><if-empty field="partyAndUserLogin"/></not>
-            <if-compare-field field="partyAndUserLogin.currentPassword" to-field="newPasswordHash" operator="equals"/>
+            <if-compare-field field="partyUserLogin.currentPassword" to-field="partyAndUserLogin.currentPassword" operator="not-equals"/>
             <if-compare-field field="partyAndUserLogin.userLoginId" to-field="userLoginId" operator="equals"/>
         </assert>
         <check-errors/>