From 9080790379c0d5d715369fafeae52950956021ad Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 7 Mar 2024 15:34:08 +0100 Subject: [PATCH] fix domain --- idhub/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/idhub/views.py b/idhub/views.py index 6a848e3..bda6e91 100644 --- a/idhub/views.py +++ b/idhub/views.py @@ -91,8 +91,7 @@ class PasswordResetView(auth_views.PasswordResetView): def serve_did(request, did_id): - import urllib.parse - domain = urllib.parse.urlencode({"domain": settings.DOMAIN})[7:] + domain = settings.DOMAIN id_did = f'did:web:{domain}:did-registry:{did_id}' did = get_object_or_404(DID, did=id_did) # Deserialize the base DID from JSON storage