mirror of
https://github.com/NovaOSS/nova-web.git
synced 2024-11-25 16:13:58 +01:00
Fixed login issue
This commit is contained in:
parent
fed0675f99
commit
f21e610938
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue