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'],