allauth_authentic2: provision first_name and last_name

This commit is contained in:
Benjamin Dauvergne 2014-05-27 10:32:47 +02:00
parent 61fd4a3090
commit ad08e4e9be
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,8 @@ class Authentic2Provider(OAuth2Provider):
def extract_common_fields(self, data):
return dict(email=data.get('email'),
username=data.get('username'),
name=data.get('displayname'))
first_name=data.get('first_name'),
last_name=data.get('last_name'))
def extract_email_addresses(self, data):
ret = [EmailAddress(email=data['email'],