Fixed incorrect if condition.
This commit is contained in:
parent
c2f70ce5ad
commit
852b3c13eb
1 changed files with 1 additions and 1 deletions
|
|
@ -376,7 +376,7 @@ proc resetPassword(c: var TForumData, nick, antibot: string): bool =
|
|||
return true
|
||||
|
||||
proc checkLoggedIn(c: var TForumData) =
|
||||
if c.req.cookies.hasKey("sid"): return
|
||||
if not c.req.cookies.hasKey("sid"): return
|
||||
let pass = c.req.cookies["sid"]
|
||||
if execAffectedRows(db,
|
||||
sql("update session set lastModified = DATETIME('now') " &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue