Compare commits

..

2 Commits

Author SHA1 Message Date
Danhia 11164bb84a replaced the bad request with a redirect to account edit 2022-02-18 11:32:08 +01:00
Danhia 67a4d180e0 corrected typo 2022-02-18 11:27:58 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ def authorize(request):
try:
token = oauth.discord.authorize_access_token(request)
except:
bad_request(request, "Connection refused")
return redirect('accounts:edit')
response = oauth.discord.get('users/@me', token=token)
response = response.json()
discord_id = response['id']