From 8df4f28123cc47339fcef7ea87e52df92d10a008 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 26 Apr 2018 15:42:15 +0200 Subject: [PATCH] utils: fix access to verified property of mappings (fixes #23271) --- src/authentic2_auth_fc/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentic2_auth_fc/utils.py b/src/authentic2_auth_fc/utils.py index 98c5d7b..5182007 100644 --- a/src/authentic2_auth_fc/utils.py +++ b/src/authentic2_auth_fc/utils.py @@ -151,7 +151,7 @@ def apply_user_info_mappings(user, user_info): elif hasattr(user.attributes, attribute): if mapping.get('if-empty') and getattr(user.attributes, attribute): continue - if getattr(mapping, 'verified', False): + if mapping.get('verified', False): setattr(user.verified_attributes, attribute, value) else: setattr(user.attributes, attribute, value)