Share link expiration update and small fixes

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

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