From e35dc609585b32463f5f425da2afc978ec337508 Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 25 May 2001 14:12:38 +0000 Subject: [PATCH] registerUser now should honor _name entry in type.properties instead of always use "name" as user name property --- src/helma/framework/core/Application.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/helma/framework/core/Application.java b/src/helma/framework/core/Application.java index 73204284..b8394ccd 100644 --- a/src/helma/framework/core/Application.java +++ b/src/helma/framework/core/Application.java @@ -405,7 +405,10 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, Runn return null; unode = new Node (uname); - unode.setString ("name", uname); + String usernameField = userMapping.getNameField (); + if (usernameField == null) + usernameField = "name"; + unode.setString (usernameField, uname); unode.setString ("password", password); unode.setPrototype ("user"); unode.setDbMapping (userMapping);