]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/openidauth/authentication.py
Show the name of the user on the accepted answer notification.
[osqa.git] / forum_modules / openidauth / authentication.py
index c82b99eda3d7971d16e8d65823f0a6c6c0474714..9163b5c5227d73c24a3b1d6a233e82fb363c3408 100644 (file)
@@ -44,6 +44,13 @@ class AolAuthContext(ConsumerTemplateContext):
 
 
 class MyOpenIdAuthConsumer(OpenIdAbstractAuthConsumer):
+    dataype2ax_schema = {
+        #'username': ('http://schema.openid.net/namePerson/friendly', 'friendly'),
+        'email': 'http://schema.openid.net/contact/email',
+        'web': 'http://schema.openid.net/contact/web/default',
+        'birthdate': ('http://schema.openid.net/birthDate', 'birthDate'),
+    }
+
     def get_user_url(self, request):
         blog_name = request.POST['input_field']
         return "http://%s.myopenid.com/" % blog_name