From b5fbc876a5aaaed5f8b8682c5807dd1eed73882c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 2 Apr 2022 20:35:16 +0200 Subject: [PATCH] gfd --- files/routes/login.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/routes/login.py b/files/routes/login.py index 119c0db95..1735e6d16 100644 --- a/files/routes/login.py +++ b/files/routes/login.py @@ -139,6 +139,7 @@ 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 @@ -355,6 +356,7 @@ 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