Missed an auxiliary table.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1831 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2006-04-21 22:18:07 +00:00
parent c67926d14d
commit 5d6272c0ce
@@ -136,7 +136,8 @@ public class UserRepository extends JORARepository
public User loadUserBySession (String sessionKey)
throws PersistenceException
{
User user = load(_utable, "where authcode = '" + sessionKey + "' AND " +
User user = load(_utable, "sessions",
"where authcode = '" + sessionKey + "' AND " +
"sessions.userId = users.userId");
if (user != null) {
user.setDirtyMask(_utable.getFieldMask());