From 56f5d44c90d49592529b860ed6752072adc3a31f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 2 Apr 2022 18:47:11 +0200 Subject: [PATCH] vxc --- files/routes/front.py | 1 - files/routes/login.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index 479c32f72..5996bdb3f 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -146,7 +146,6 @@ def front_all(v, sub=None, subdomain=None): if (request.path.startswith('/h/') or request.path.startswith('/s/')) and not sub: abort(404) if g.webview and 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"): diff --git a/files/routes/login.py b/files/routes/login.py index d5759dc17..d893d6833 100644 --- a/files/routes/login.py +++ b/files/routes/login.py @@ -139,7 +139,6 @@ def login_post(): else: abort(400) - session.permanent = True session["session_id"] = token_hex(49) session["lo_user"] = account.id session["login_nonce"] = account.login_nonce @@ -356,7 +355,6 @@ def sign_up_post(v): send_notification(new_user.id, WELCOME_MSG) - session.permanent = True session["session_id"] = token_hex(49) session["lo_user"] = new_user.id