fix domain
This commit is contained in:
parent
f888be2592
commit
9080790379
|
@ -91,8 +91,7 @@ class PasswordResetView(auth_views.PasswordResetView):
|
||||||
|
|
||||||
|
|
||||||
def serve_did(request, did_id):
|
def serve_did(request, did_id):
|
||||||
import urllib.parse
|
domain = settings.DOMAIN
|
||||||
domain = urllib.parse.urlencode({"domain": settings.DOMAIN})[7:]
|
|
||||||
id_did = f'did:web:{domain}:did-registry:{did_id}'
|
id_did = f'did:web:{domain}:did-registry:{did_id}'
|
||||||
did = get_object_or_404(DID, did=id_did)
|
did = get_object_or_404(DID, did=id_did)
|
||||||
# Deserialize the base DID from JSON storage
|
# Deserialize the base DID from JSON storage
|
||||||
|
|
Loading…
Reference in New Issue