diff --git a/teraserver/python/opentera/db/models/TeraUser.py b/teraserver/python/opentera/db/models/TeraUser.py index ab60555c..10a88d45 100755 --- a/teraserver/python/opentera/db/models/TeraUser.py +++ b/teraserver/python/opentera/db/models/TeraUser.py @@ -68,7 +68,8 @@ def to_json(self, ignore_fields=None, minimal=False): if ignore_fields is None: ignore_fields = [] ignore_fields.extend(['authenticated', 'user_password', 'user_user_groups', - 'user_sessions']) + 'user_sessions', 'user_2fa_enabled', 'user_2fa_otp_enabled', + 'user_2fa_email_enabled', 'user_2fa_otp_secret', 'user_force_password_change']) if minimal: ignore_fields.extend(['user_username', 'user_email', 'user_profile', 'user_notes', 'user_lastonline', 'user_superadmin'])