summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2025-01-21 13:18:43 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2025-01-21 13:18:43 +0000
commitb59ab47bc2cf7f57d54e33a2a9fb0de0b9b22be1 (patch)
treeb538110720bf69defbe698d01afef81ebc0232cd /core
parent65cdeb4994b333f2facb6ef34fe7690e33deab76 (diff)
downloadtroggle-b59ab47bc2cf7f57d54e33a2a9fb0de0b9b22be1.tar.gz
troggle-b59ab47bc2cf7f57d54e33a2a9fb0de0b9b22be1.tar.bz2
troggle-b59ab47bc2cf7f57d54e33a2a9fb0de0b9b22be1.zip
extend cookie timeout to 2 years
Diffstat (limited to 'core')
-rw-r--r--core/utils.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/utils.py b/core/utils.py
index bfd6eee..fa8f57b 100644
--- a/core/utils.py
+++ b/core/utils.py
@@ -43,7 +43,7 @@ Read this now: https://nerderati.com/a-python-epoch-timestamp-timezone-trap/
TROG = {"pagecache": {"expedition": {}}, "caves": {"gcavelookup": {}, "gcavecount": {}}}
alphabet = []
sha = hashlib.new('sha256')
-COOKIE_MAX_AGE = 12*60*60 # seconds
+COOKIE_MAX_AGE = 2*365*24*60*60 # seconds
throw = 35.0
EXPOSERVER = "expo" # hostname of the server at expo.survex.com
@@ -303,8 +303,10 @@ def git_commit(cwd, message, editor, commands=[]):
return commands
def add_commit(fname, message, editor):
- """Used to commit a survex file edited and saved in view/survex.py
- and also contents.json for an edited wallet"""
+ """Used to commit a survex file edited and saved in view/survex.py,
+ also contents.json for an edited wallet,
+ also encrypted.json for an edited user registration
+ """
cwd = fname.parent
filename = fname.name
commands = []
@@ -312,7 +314,7 @@ def add_commit(fname, message, editor):
if editor:
editor = git_string(editor)
else:
- # 'cannot happen' as form verification has this as an obligatory field
+ # 'cannot happen' as form verification has this is an obligatory field
editor = "Anathema Device <a.device@potatohut.expo>"
try: