Share link expiration update and small fixes

This commit is contained in:
Inga Kirschnick committed 2023-02-13 10:16:44 +01:00
1 parent 1767ceee01
commit 8595e2a203
3 files changed
+9 -4

No files matched your search

+1
View File
@@ -76,6 +76,7 @@ def corpus(corpus_id):
return redirect(url_for('.corpus', corpus_id=corpus.id))
now = datetime.utcnow()
payload = {
'exp': now + timedelta(weeks=1),
'iat': now,
'iss': current_app.config['SERVER_NAME'],
'sub': corpus.hashid