Fix registerUser(): user addNode() instead of setNode() so user nodes are stored as child nodes, not properties.

This commit is contained in:
hns 2005-06-28 10:27:05 +00:00
parent 9e43503ced
commit 6bdb02ec6a

View file

@ -990,7 +990,6 @@ public final class Application implements IPathElement, Runnable {
}
unode = new Node(uname, "user", nmgr.safe);
users.setNode(uname, unode);
String usernameField = (userMapping != null) ? userMapping.getNameField() : null;
String usernameProp = null;
@ -1007,7 +1006,8 @@ public final class Application implements IPathElement, Runnable {
unode.setString(usernameProp, uname);
unode.setString("password", password);
return unode;
return users.addNode(unode);
} catch (Exception x) {
logEvent("Error registering User: " + x);