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
|
return true
|
||||||
|
|
||||||
proc checkLoggedIn(c: var TForumData) =
|
proc checkLoggedIn(c: var TForumData) =
|
||||||
|
if c.req.cookies.hasKey("sid"): return
|
||||||
let pass = c.req.cookies["sid"]
|
let pass = c.req.cookies["sid"]
|
||||||
if pass.len == 0: return
|
|
||||||
if execAffectedRows(db,
|
if execAffectedRows(db,
|
||||||
sql("update session set lastModified = DATETIME('now') " &
|
sql("update session set lastModified = DATETIME('now') " &
|
||||||
"where ip = ? and password = ?"),
|
"where ip = ? and password = ?"),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue