From d6212c93e16d117f8ef64bbd52662f5a22ba3e8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 18 Jan 2021 11:06:11 +0100 Subject: [PATCH] duplicate phone attribute kind with dedicated name --- src/authentic2_auth_fedict/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/authentic2_auth_fedict/__init__.py b/src/authentic2_auth_fedict/__init__.py index bcb4945..bb0fe58 100644 --- a/src/authentic2_auth_fedict/__init__.py +++ b/src/authentic2_auth_fedict/__init__.py @@ -117,6 +117,13 @@ class Plugin(object): 'name': 'phone', 'field_class': fields.NumPhoneField, }, + { + 'label': _('Phone number'), + 'serialize': json.dumps, + 'deserialize': json.loads, + 'name': 'fedict_phone', + 'field_class': fields.NumPhoneField, + }, { 'label': _('Country'), 'serialize': json.dumps,