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:
Robin Malley 2021-09-11 21:50:23 +00:00
parent 3bd07ebf6a
commit 9444d300b8
1 changed files with 1 additions and 1 deletions

View File

@ -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;