Need to quote that. Oh how we love primitive database technologies.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2578 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
samskivert
2009-06-22 19:52:41 +00:00
parent 972c741ae3
commit a7fff912ff
@@ -292,7 +292,8 @@ public class UserRepository extends JORARepository
// if we found one, update its expires time and reuse it
if (authcode != null) {
update("update sessions set expires = '" + expires + "' where authcode = " + authcode);
update("update sessions set expires = '" + expires + "' where " +
"authcode = '" + authcode + "'");
} else {
// otherwise create a new one and insert it into the table
authcode = UserUtil.genAuthCode(user);