From ad08e4e9be7001bfd73182275cafc26549c58dcf Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Tue, 27 May 2014 10:32:47 +0200 Subject: [PATCH] allauth_authentic2: provision first_name and last_name --- portail_citoyen2/allauth_authentic2/provider.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/portail_citoyen2/allauth_authentic2/provider.py b/portail_citoyen2/allauth_authentic2/provider.py index caf34a2..850cb10 100644 --- a/portail_citoyen2/allauth_authentic2/provider.py +++ b/portail_citoyen2/allauth_authentic2/provider.py @@ -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'],