X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/63ad88e2826d82b4ea7ff380784d471fa4884e3d..ee224eb2acc8f8d6ef4af6c083060a4403f45cd9:/forum_modules/openidauth/consumer.py?ds=sidebyside diff --git a/forum_modules/openidauth/consumer.py b/forum_modules/openidauth/consumer.py index aa24a36..2605587 100644 --- a/forum_modules/openidauth/consumer.py +++ b/forum_modules/openidauth/consumer.py @@ -4,7 +4,6 @@ import re from django.utils.encoding import smart_unicode from django.utils.html import escape -from django.http import get_host from forum.authentication.base import AuthenticationConsumer, InvalidAuthentication import settings @@ -32,7 +31,8 @@ class OpenIdAbstractAuthConsumer(AuthenticationConsumer): sreg_attributes = { "required": { "email": "email", - "nickname": "username" + "nickname": "username", + "fullname": "real_name" } } @@ -164,8 +164,8 @@ def get_url_host(request): protocol = 'https' else: protocol = 'http' - host = escape(get_host(request)) + host = escape(request.get_host()) return '%s://%s' % (protocol, host) def get_full_url(request): - return get_url_host(request) + request.get_full_path() \ No newline at end of file + return get_url_host(request) + request.get_full_path()