Skip to content

Commit

Permalink
Refs #253, added new columns to ignored fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
doumdi committed Sep 5, 2024
1 parent 8f95e7a commit a55e535
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion teraserver/python/opentera/db/models/TeraUser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down

0 comments on commit a55e535

Please sign in to comment.