removed language code in redirect_uri

This commit is contained in:
Danhia 2022-02-17 12:21:17 +01:00
parent 0d734e98b1
commit a7de7b8054
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ def connect(request):
return bad_request(request, "Already connected")
site = Site.objects.get_current()
redirect_uri = reverse('accounts:connections-connect-discord-authorize')
redirect_uri = "https://" + site.domain + redirect_uri[2:] # remove language code
redirect_uri = "https://" + site.domain + redirect_uri[3:] # remove language code
print(redirect_uri)
return oauth.discord.authorize_redirect(request, redirect_uri)