Fix yet another [] crash.
This commit is contained in:
parent
1008ab6476
commit
c2f70ce5ad
1 changed files with 1 additions and 1 deletions
|
|
@ -376,8 +376,8 @@ proc resetPassword(c: var TForumData, nick, antibot: string): bool =
|
|||
return true
|
||||
|
||||
proc checkLoggedIn(c: var TForumData) =
|
||||
if c.req.cookies.hasKey("sid"): return
|
||||
let pass = c.req.cookies["sid"]
|
||||
if pass.len == 0: return
|
||||
if execAffectedRows(db,
|
||||
sql("update session set lastModified = DATETIME('now') " &
|
||||
"where ip = ? and password = ?"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue