cc
This commit is contained in:
parent
a795bd39e9
commit
6fa4bd4281
1 changed files with 4 additions and 0 deletions
|
@ -140,6 +140,10 @@ def front_all(v):
|
|||
|
||||
if v and request.path.startswith('/logged_out'): v = None
|
||||
|
||||
if not session.get("session_id"):
|
||||
session.permanent = True
|
||||
session["session_id"] = secrets.token_hex(49)
|
||||
|
||||
try: page = max(int(request.values.get("page", 1)), 1)
|
||||
except: abort(400)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue