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
d4444630
Commit
d4444630
authored
Nov 17, 2021
by
Leon Tappe
🔥
Browse files
add iso formatting to timestamp
parent
17b99c19
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/website/routes.py
View file @
d4444630
...
...
@@ -203,7 +203,7 @@ def make_seed():
if
valid
!=
None
and
valid
:
# save current timestamp
timestamp
=
datetime
.
now
(
tzutc
())
seed
=
jsonify
(
timestamp
=
timestamp
,
ticket
=
str
(
body
)).
data
seed
=
jsonify
(
timestamp
=
timestamp
.
isoformat
()
,
ticket
=
str
(
body
)).
data
# sign seed with AES encryption
cipher
=
AES
.
new
(
seedKey
,
AES
.
MODE_EAX
)
ciphertext
,
tag
=
cipher
.
encrypt_and_digest
(
seed
)
...
...
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