fixed bug where DbMapping wasn't set correctly for anonymous users

This commit is contained in:
hns 2001-07-30 00:27:50 +00:00
parent 94c4997e01
commit 65feddbf32

View file

@ -28,8 +28,10 @@ public class User implements Serializable {
this.nid = null; this.nid = null;
this.app = app; this.app = app;
setNode (null); setNode (null);
umap = app.getDbMapping ("user");
cache = new Node (sid); cache = new Node (sid);
cache.setPrototype ("user"); cache.setPrototype ("user");
cache.setDbMapping (umap);
sessionID = sid; sessionID = sid;
onSince = System.currentTimeMillis (); onSince = System.currentTimeMillis ();
lastTouched = onSince; lastTouched = onSince;
@ -48,7 +50,6 @@ public class User implements Serializable {
} else { } else {
uid = n.getNameOrID (); uid = n.getNameOrID ();
nid = n.getID (); nid = n.getID ();
umap = n.getDbMapping ();
} }
} }