From f21e6109389a487e2ce6551bb9f96e57fd5c774f Mon Sep 17 00:00:00 2001 From: nsde Date: Fri, 22 Sep 2023 15:11:03 +0200 Subject: [PATCH] Fixed login issue --- web/account.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/web/account.py b/web/account.py index 6766cfb..8ecc703 100755 --- a/web/account.py +++ b/web/account.py @@ -87,7 +87,6 @@ def register(app): authorization_response=flask.request.url, ) - flask.session.permanent = True flask.session['discord_token'] = token flask.session['discord_id'] = discord_account.get(f'{API_URL}/users/@me').json()['id'] @@ -102,7 +101,6 @@ def register(app): except Exception as e: return f'Your token has expired. Please try logging in again.' - flask.session.permanent = True flask.session['discord_id'] = profile['id'] return flask.redirect('/') # DONE