custom_settings: ignore preferred_username from FC when it's already set (#45866)

This commit is contained in:
Benjamin Dauvergne 2020-08-13 10:39:38 +02:00
parent c8e3d7e536
commit 70f00be9e6
1 changed files with 4 additions and 1 deletions

View File

@ -75,7 +75,6 @@ A2_FC_USER_INFO_MAPPINGS = {
'birthcountry': {'ref': 'birthcountry', 'translation': 'insee-countries'},
'birthplace_insee': 'birthplace',
'birthcountry_insee': 'birthcountry',
'preferred_username': 'preferred_username',
'title': {
'ref': 'gender',
'translation': 'simple',
@ -84,6 +83,10 @@ A2_FC_USER_INFO_MAPPINGS = {
'female': 'Madame',
}
},
'preferred_username': {
'ref': 'preferred_username',
'if-empty': True,
},
'address': 'address.formatted',
'phone': 'phone',
'email': {