From aa0e76960237d20114fce5da35ac9bc97d41efff Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 8 Apr 2021 11:18:22 +0200 Subject: [PATCH] auth_fc: save forced mapping of first_name and last_name (#52855) --- src/authentic2_auth_fc/backends.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/authentic2_auth_fc/backends.py b/src/authentic2_auth_fc/backends.py index 24bb63cec..72685a8be 100644 --- a/src/authentic2_auth_fc/backends.py +++ b/src/authentic2_auth_fc/backends.py @@ -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