auth_fc: save forced mapping of first_name and last_name (#52855)

This commit is contained in:
Benjamin Dauvergne 2021-04-08 11:18:22 +02:00
parent 12fc2bca25
commit aa0e769602
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ class FcBackend(ModelBackend):
user.last_name = user_info['family_name']
updated.append('family name: "%s"' % user_info['family_name'])
if updated:
user.save()
logger.debug('updated (%s)', ' - '.join(updated))
utils.apply_user_info_mappings(user, user_info)
return user