change name serve_did for ServerDidView
This commit is contained in:
parent
5d2724eeab
commit
64cd67096c
|
@ -21,7 +21,7 @@ from .views import (
|
||||||
LoginView,
|
LoginView,
|
||||||
PasswordResetView,
|
PasswordResetView,
|
||||||
PasswordResetConfirmView,
|
PasswordResetConfirmView,
|
||||||
serve_did,
|
ServeDidView,
|
||||||
DobleFactorSendView,
|
DobleFactorSendView,
|
||||||
)
|
)
|
||||||
from .admin import views as views_admin
|
from .admin import views as views_admin
|
||||||
|
@ -183,7 +183,7 @@ urlpatterns = [
|
||||||
name='admin_2fauth'),
|
name='admin_2fauth'),
|
||||||
path('admin/auth/2f/', DobleFactorSendView.as_view(), name='confirm_send_2f'),
|
path('admin/auth/2f/', DobleFactorSendView.as_view(), name='confirm_send_2f'),
|
||||||
|
|
||||||
path('did-registry/<str:did_id>/did.json', serve_did)
|
path('did-registry/<str:did_id>/did.json', ServeDidView, name="serve_did")
|
||||||
|
|
||||||
# path('verification_portal/verify/', views_verification_portal.verify,
|
# path('verification_portal/verify/', views_verification_portal.verify,
|
||||||
# name="verification_portal_verify")
|
# name="verification_portal_verify")
|
||||||
|
|
|
@ -90,7 +90,7 @@ class PasswordResetView(auth_views.PasswordResetView):
|
||||||
return HttpResponseRedirect(self.success_url)
|
return HttpResponseRedirect(self.success_url)
|
||||||
|
|
||||||
|
|
||||||
def serve_did(request, did_id):
|
def ServeDidView(request, did_id):
|
||||||
domain = settings.DOMAIN
|
domain = settings.DOMAIN
|
||||||
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)
|
||||||
|
|
Loading…
Reference in New Issue