aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authorisation/users/masquerade/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn_auth/auth/authorisation/users/masquerade/views.py')
-rw-r--r--gn_auth/auth/authorisation/users/masquerade/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/users/masquerade/views.py b/gn_auth/auth/authorisation/users/masquerade/views.py
index 259cdfe..b0464ba 100644
--- a/gn_auth/auth/authorisation/users/masquerade/views.py
+++ b/gn_auth/auth/authorisation/users/masquerade/views.py
@@ -1,4 +1,5 @@
"""Endpoints for user masquerade"""
+from dataclasses import asdict
from uuid import UUID
from functools import partial
@@ -42,7 +43,7 @@ def masquerade() -> Response:
"token": __dump_token__(token)
},
"masquerade_as": {
- "user": masq_user._asdict(),
+ "user": asdict(masq_user),
"token": __dump_token__(with_db_connection(__masq__))
}
})