Make sessions last a year
This commit is contained in:
parent
9428cc2d9c
commit
444f0226e6
|
@ -5,7 +5,7 @@ import jwt
|
||||||
from cista.config import derived_secret
|
from cista.config import derived_secret
|
||||||
|
|
||||||
session_secret = lambda: derived_secret("session")
|
session_secret = lambda: derived_secret("session")
|
||||||
max_age = 60 # Seconds since last login
|
max_age = 365 * 86400 # Seconds since last login
|
||||||
|
|
||||||
def get(request):
|
def get(request):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user