Skip to content

Commit

Permalink
small forgotten change
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Dec 10, 2024
1 parent 7544f1c commit 31eb42f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liberapay/models/participant.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def authenticate_with_session(
if session_id >= 800 and session_id < 810:
if (latest_use or mtime.date()) < today - SESSION_TIMEOUT_LONG:
return None, 'expired'
elif mtime > utcnow() - SESSION_TIMEOUT:
elif mtime > now - SESSION_TIMEOUT:
p.session = SimpleNamespace(id=session_id, secret=secret, mtime=mtime)
elif allow_downgrade:
if mtime > now - FOUR_WEEKS:
Expand Down

0 comments on commit 31eb42f

Please sign in to comment.