Allow logged in users to use their session immediately.
Fix a bug where unit tests are attempting to log in and use their session key in the same second that the session key was created.
This commit is contained in:
parent
3bd07ebf6a
commit
9444d300b8
|
@ -3,4 +3,4 @@ FROM authors, sessions
|
|||
WHERE
|
||||
sessions.key = :key AND
|
||||
sessions.author = authors.id AND
|
||||
sessions.start - strftime('%s','now') < 60*60*24;
|
||||
sessions.start - strftime('%s','now') <= 60*60*24;
|
||||
|
|
Loading…
Reference in New Issue