Author: jacopoc
Date: Thu May 1 03:07:30 2008
New Revision: 652468
URL:
http://svn.apache.org/viewvc?rev=652468&view=revLog:
Fix for compile time error caused by the recent work on password encryption: I hope I have converted the old method in the proper way.
Thanks to Vikas Mayur for the report.
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=652468&r1=652467&r2=652468&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 Thu May 1 03:07:30 2008
@@ -36,6 +36,7 @@
import org.ofbiz.base.util.UtilProperties;
import org.ofbiz.base.util.UtilValidate;
import org.ofbiz.common.login.LoginServices;
+import org.ofbiz.base.crypto.HashCrypt;
import org.ofbiz.entity.GenericDelegator;
import org.ofbiz.entity.GenericEntityException;
import org.ofbiz.entity.GenericValue;
@@ -211,7 +212,7 @@
// multiply by 100,000 to usually make a 5 digit number
passwordToSend = "auto" + ((long) (randNum * 100000));
- supposedUserLogin.set("currentPassword", LoginServices.getPasswordHash(passwordToSend));
+ supposedUserLogin.set("currentPassword", HashCrypt.getDigestHash(passwordToSend, LoginServices.getHashType()));
supposedUserLogin.set("passwordHint", "Auto-Generated Password");
} else {
passwordToSend = supposedUserLogin.getString("currentPassword");