This is an automated email from the ASF dual-hosted git repository.
dixitdeepak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new d87601f205 Added userFullName in UserLogin entity, also updated
createUserLogin service to set the userFullName (OFBIZ-13391) (#1236)
d87601f205 is described below
commit d87601f2058a352a090b2f7b7eb0d99431ace486
Author: Deepak Dixit <[email protected]>
AuthorDate: Mon May 25 10:23:37 2026 +0530
Added userFullName in UserLogin entity, also updated createUserLogin
service to set the userFullName (OFBIZ-13391) (#1236)
---
applications/datamodel/DATAMODEL_CHANGES.adoc | 1 +
framework/common/servicedef/services.xml | 1 +
.../src/main/java/org/apache/ofbiz/common/login/LoginServices.java | 3 ++-
framework/security/entitydef/entitymodel.xml | 1 +
4 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/applications/datamodel/DATAMODEL_CHANGES.adoc
b/applications/datamodel/DATAMODEL_CHANGES.adoc
index b087bd6efc..71908c1d5d 100644
--- a/applications/datamodel/DATAMODEL_CHANGES.adoc
+++ b/applications/datamodel/DATAMODEL_CHANGES.adoc
@@ -457,4 +457,5 @@ No changes
|WorkEffortStatus |reason |Added |No |NA
|WorkEffortTypeAttr |description |Added |No |NA
|WorkOrderItemFulfillment |shipGroupSeqId |Added |No |NA
+|UserLogin |userFullName |Added |No |NA
|=================================================================
diff --git a/framework/common/servicedef/services.xml
b/framework/common/servicedef/services.xml
index c40631ee8e..0d7ce44938 100644
--- a/framework/common/servicedef/services.xml
+++ b/framework/common/servicedef/services.xml
@@ -435,6 +435,7 @@ under the License.
location="org.apache.ofbiz.common.login.LoginServices"
invoke="createUserLogin">
<description>Create a UserLogin</description>
<attribute name="userLoginId" type="String" mode="IN"
optional="false"/>
+ <attribute name="userFullName" type="String" mode="IN"
optional="true"/>
<attribute name="enabled" type="String" mode="IN" optional="true"/>
<attribute name="currentPassword" type="String" mode="IN"
optional="false"/>
<attribute name="currentPasswordVerify" type="String" mode="IN"
optional="false"/>
diff --git
a/framework/common/src/main/java/org/apache/ofbiz/common/login/LoginServices.java
b/framework/common/src/main/java/org/apache/ofbiz/common/login/LoginServices.java
index a24bbf60d4..6599592fd6 100644
---
a/framework/common/src/main/java/org/apache/ofbiz/common/login/LoginServices.java
+++
b/framework/common/src/main/java/org/apache/ofbiz/common/login/LoginServices.java
@@ -680,6 +680,7 @@ public class LoginServices {
boolean useEncryption =
"true".equals(EntityUtilProperties.getPropertyValue("security",
"password.encrypt", delegator));
String userLoginId = (String) context.get("userLoginId");
+ String userFullName = (String) context.get("userFullName");
String partyId = (String) context.get("partyId");
String currentPassword = (String) context.get("currentPassword");
String currentPasswordVerify = (String)
context.get("currentPasswordVerify");
@@ -719,7 +720,7 @@ public class LoginServices {
}
}
- GenericValue userLoginToCreate = delegator.makeValue("UserLogin",
UtilMisc.toMap("userLoginId", userLoginId));
+ GenericValue userLoginToCreate = delegator.makeValue("UserLogin",
UtilMisc.toMap("userLoginId", userLoginId, "userFullName", userFullName));
checkNewPassword(userLoginToCreate, null, currentPassword,
currentPasswordVerify, passwordHint, errorMessageList, true, locale);
userLoginToCreate.set("externalAuthId", externalAuthId);
userLoginToCreate.set("passwordHint", passwordHint);
diff --git a/framework/security/entitydef/entitymodel.xml
b/framework/security/entitydef/entitymodel.xml
index f0e73758eb..c356128965 100644
--- a/framework/security/entitydef/entitymodel.xml
+++ b/framework/security/entitydef/entitymodel.xml
@@ -62,6 +62,7 @@ under the License.
package-name="org.apache.ofbiz.security.login"
title="User Login">
<field name="userLoginId" type="id-vlong"></field>
+ <field name="userFullName" type="name"/>
<field name="currentPassword" type="long-varchar"></field>
<field name="passwordHint" type="description"></field>
<field name="isSystem" type="indicator"></field>