From ada5374db57ffb75cd36a615299cef21c51b722c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Fri, 29 Jul 2022 16:42:24 +0200 Subject: [PATCH] fixed showing MFA on list --- server/src/uds/REST/methods/authenticators.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/uds/REST/methods/authenticators.py b/server/src/uds/REST/methods/authenticators.py index fb65bf37..7dc1f7a5 100644 --- a/server/src/uds/REST/methods/authenticators.py +++ b/server/src/uds/REST/methods/authenticators.py @@ -71,7 +71,7 @@ class Authenticators(ModelHandler): {'visible': {'title': _('Visible'), 'type': 'callback', 'width': '3em'}}, {'small_name': {'title': _('Label')}}, {'users_count': {'title': _('Users'), 'type': 'numeric', 'width': '5em'}}, - {'mfa': {'title': _('MFA'), 'type': 'callback', 'width': '3em'}}, + {'mfa_name': {'title': _('MFA'),}}, {'tags': {'title': _('tags'), 'visible': False}}, ] @@ -153,6 +153,7 @@ class Authenticators(ModelHandler): 'comments': item.comments, 'priority': item.priority, 'mfa_id': item.mfa.uuid if item.mfa else '', + 'mfa_name': item.mfa.name if item.mfa else '', # For overview 'visible': item.visible, 'small_name': item.small_name, 'users_count': item.users.count(),