registerUser now should honor _name entry in
type.properties instead of always use "name" as user name property
This commit is contained in:
parent
0defb7c9c0
commit
e35dc60958
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue