pyvckit #1

Merged
cayop merged 17 commits from pyvckit into release 2024-06-11 15:10:32 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 32ad6edd9d - Show all commits

View File

@ -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")

View File

@ -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)