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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user