removed language code in redirect_uri
This commit is contained in:
parent
76dc026b73
commit
0c1b47ee1b
|
@ -26,7 +26,7 @@ def connect(request):
|
||||||
return bad_request(request, "Already connected")
|
return bad_request(request, "Already connected")
|
||||||
site = Site.objects.get_current()
|
site = Site.objects.get_current()
|
||||||
redirect_uri = reverse('accounts:connections-connect-discord-authorize')
|
redirect_uri = reverse('accounts:connections-connect-discord-authorize')
|
||||||
redirect_uri = "https://" + site.domain + redirect_uri
|
redirect_uri = "https://" + site.domain + redirect_uri[2:] # remove language code
|
||||||
print(redirect_uri)
|
print(redirect_uri)
|
||||||
return oauth.discord.authorize_redirect(request, redirect_uri)
|
return oauth.discord.authorize_redirect(request, redirect_uri)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue