Skip to content
Snippets Groups Projects
Commit 6fbf34fa authored by Leon Tappe's avatar Leon Tappe 🔥
Browse files

reduce time for valid qr code

parent 6ec38bb4
Branches
Tags
No related merge requests found
......@@ -220,7 +220,7 @@ def generate_ticket():
json_seed = json.loads(data.decode('utf-8'))
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
# sign RSA ticket with AES encryption
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment