Commit 6fbf34fa authored by Leon Tappe's avatar Leon Tappe 🔥
Browse files

reduce time for valid qr code

parent 6ec38bb4
...@@ -220,7 +220,7 @@ def generate_ticket(): ...@@ -220,7 +220,7 @@ def generate_ticket():
json_seed = json.loads(data.decode('utf-8')) json_seed = json.loads(data.decode('utf-8'))
epoch_timestamp = parser.isoparse(json_seed['timestamp']).timestamp() epoch_timestamp = parser.isoparse(json_seed['timestamp']).timestamp()
if datetime.now(tzutc()).timestamp() - epoch_timestamp > 60.0: if datetime.now(tzutc()).timestamp() - epoch_timestamp > 30.0:
return 'error: oldseed', 400 return 'error: oldseed', 400
# sign RSA ticket with AES encryption # sign RSA ticket with AES encryption
......
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