Fixed login issue

This commit is contained in:
nsde 2023-09-22 15:11:03 +02:00
parent fed0675f99
commit f21e610938

View file

@ -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