Skip to content

Commit

Permalink
add "from datetime import timedelta" line to wikiconfig; fixes moinwi…
Browse files Browse the repository at this point in the history
…ki#1754

needed if wiki admin changes PERMANENT_SESSION_LIFETIME value
in wikiconfig.py.

>>>> manual copy of src/moin/config/wikiconfig.py over wikiconfig.py
required afer applying this patch
  • Loading branch information
RogerHaase committed Oct 6, 2024
1 parent f3913b7 commit 238a197
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/moin/config/wikiconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ class Config(DefaultConfig):
SESSION_COOKIE_HTTPONLY = True # flask default is True
SESSION_COOKIE_SAMESITE = "Lax" # flask default is None
# SESSION_COOKIE_NAME = 'session'
# from datetime import timedelta # next line requires this
# PERMANENT_SESSION_LIFETIME = timedelta(days=31)
# USE_X_SENDFILE = False
# LOGGER_NAME = 'MoinMoin'
Expand Down

0 comments on commit 238a197

Please sign in to comment.