Wrong value was checked.

Before creating the user login, I checked the presence of the cardId instead of the phone (certainly a remaining in the code from previous attempts). 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890057 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2009-12-13 12:21:48 +00:00
parent 88a1d75b81
commit 8f0cbf2a3f
@@ -1715,7 +1715,7 @@ public class PosTransaction implements Serializable {
svcCtx.put("userLogin", userLogin);
svcCtx.put("lastName", name);
svcCtx.put("firstName", ""); // Needed by service createPersonAndUserLogin
if (UtilValidate.isNotEmpty(email) && UtilValidate.isNotEmpty(card)) {
if (UtilValidate.isNotEmpty(email) && UtilValidate.isNotEmpty(phone)) {
svcCtx.put("userLoginId", email);
svcCtx.put("currentPassword", phone);
svcCtx.put("currentPasswordVerify", phone);