mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 05:04:27 +00:00
Increase admin session validity to 3 days
This commit is contained in:
parent
9d312bc229
commit
c83dd30f41
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ async def user_session_or_redirect(
|
||||||
raise _RedirectToLoginPage
|
raise _RedirectToLoginPage
|
||||||
|
|
||||||
try:
|
try:
|
||||||
loaded_session = session_serializer.loads(session, max_age=3600 * 12)
|
loaded_session = session_serializer.loads(session, max_age=3600 * 24 * 3)
|
||||||
except Exception:
|
except Exception:
|
||||||
raise _RedirectToLoginPage
|
raise _RedirectToLoginPage
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue