This commit is contained in:
Aevann1 2022-01-24 22:31:50 +02:00
parent 6fa4bd4281
commit fccd2e8c05

View file

@ -135,15 +135,15 @@ def notifications(v):
@auth_desired
def front_all(v):
if not session.get("session_id"):
session.permanent = True
session["session_id"] = secrets.token_hex(49)
if not v and request.path == "/" and not request.headers.get("Authorization"):
return redirect(f"{SITE_FULL}/logged_out{request.full_path}")
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)