Commit 7335ba13 authored by Leon Tappe's avatar Leon Tappe 🔥
Browse files

let tickets be valid for 2 days longer

parent 6e6bb3ad
......@@ -199,6 +199,8 @@ def decrypt_ticket(ticket):
def check_ticket(decrypted):
# compare current time with request's datetime in utc
if (decrypted > datetime.datetime(2022, 3, 31, 23, 0, 0, 0) and datetime.now() < datetime.datetime(2022, 4, 3, 0, 0, 0, 0)):
return True
return decrypted > datetime.now(tzutc())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment