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 2010/06/01 23:47:12 UTC

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

Author: doogie
Date: Tue Jun  1 21:47:12 2010
New Revision: 950263

URL: http://svn.apache.org/viewvc?rev=950263&view=rev
Log:
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=950263&r1=950262&r2=950263&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 Tue Jun  1 21:47:12 2010
@@ -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/>
@@ -299,4 +293,4 @@ under the License.
         </assert>
         <check-errors/>
     </simple-method>
-</simple-methods>
\ No newline at end of file
+</simple-methods>