Skip to content

Commit

Permalink
Merge 31bafeb into 9c31b65
Browse files Browse the repository at this point in the history
  • Loading branch information
riconnon committed Aug 13, 2018
2 parents 9c31b65 + 31bafeb commit 1c1923b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion allauth/socialaccount/providers/openid/views.py
Expand Up @@ -35,6 +35,8 @@ def login(request):
)
if form.is_valid():
client = _openid_consumer(request)
provider = OpenIDProvider(request)
realm = provider.get_settings().get('REALM', request.build_absolute_uri('/'))
try:
auth_request = client.begin(form.cleaned_data['openid'])
if QUERY_EMAIL:
Expand Down Expand Up @@ -62,7 +64,7 @@ def login(request):
auth_request.return_to_args['next'] = \
form.cleaned_data.get('next', '/')
redirect_url = auth_request.redirectURL(
request.build_absolute_uri('/'),
realm,
request.build_absolute_uri(callback_url))
return HttpResponseRedirect(redirect_url)
# UnicodeDecodeError:
Expand Down

0 comments on commit 1c1923b

Please sign in to comment.