Compare commits
2 Commits
3b86441259
...
11164bb84a
Author | SHA1 | Date |
---|---|---|
Danhia | 11164bb84a | |
Danhia | 67a4d180e0 |
|
@ -37,7 +37,7 @@ def authorize(request):
|
||||||
try:
|
try:
|
||||||
token = oauth.discord.authorize_access_token(request)
|
token = oauth.discord.authorize_access_token(request)
|
||||||
except:
|
except:
|
||||||
bad_request(request, "Connection refused")
|
return redirect('accounts:edit')
|
||||||
response = oauth.discord.get('users/@me', token=token)
|
response = oauth.discord.get('users/@me', token=token)
|
||||||
response = response.json()
|
response = response.json()
|
||||||
discord_id = response['id']
|
discord_id = response['id']
|
||||||
|
|
Loading…
Reference in New Issue