Compare commits
No commits in common. "3b864412597742fc27af235f340de11e81001752" and "eac835bef51cfa7565bc5f9bf1d4931dcf7c8ed2" have entirely different histories.
3b86441259
...
eac835bef5
|
@ -34,10 +34,7 @@ def connect(request):
|
|||
def authorize(request):
|
||||
if request.user.userprofileinfo.discord_id:
|
||||
return bad_request(request, "Already connected")
|
||||
try:
|
||||
token = oauth.discord.authorize_access_token(request)
|
||||
except:
|
||||
bad_request(request, "Connection refused")
|
||||
response = oauth.discord.get('users/@me', token=token)
|
||||
response = response.json()
|
||||
discord_id = response['id']
|
||||
|
|
Loading…
Reference in New Issue