Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
AStA
Digitaler 3G-Nachweis
Commits
6fbf34fa
Commit
6fbf34fa
authored
Jan 20, 2022
by
Leon Tappe
🔥
Browse files
reduce time for valid qr code
parent
6ec38bb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/website/routes.py
View file @
6fbf34fa
...
...
@@ -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
>
6
0.0
:
if
datetime
.
now
(
tzutc
()).
timestamp
()
-
epoch_timestamp
>
3
0.0
:
return
'error: oldseed'
,
400
# sign RSA ticket with AES encryption
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment