From 2ca1663e905420627ae783705afc31ca6ebb836e Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 30 Oct 2023 18:29:21 +0100 Subject: [PATCH] request credential --- idhub/models.py | 7 ++-- idhub/templates/idhub/base.html | 4 +- .../idhub/user/credentials_request.html | 39 +++++++++++++++++++ .../idhub/user/credentials_required.html | 9 ----- idhub/urls.py | 9 +++-- idhub/user/views.py | 32 +++++++++++++-- 6 files changed, 79 insertions(+), 21 deletions(-) create mode 100644 idhub/templates/idhub/user/credentials_request.html delete mode 100644 idhub/templates/idhub/user/credentials_required.html diff --git a/idhub/models.py b/idhub/models.py index 3b72f3f..037bd12 100644 --- a/idhub/models.py +++ b/idhub/models.py @@ -54,9 +54,10 @@ class VerificableCredential(models.Model): """ class Status(models.IntegerChoices): ENABLE = 1, _("Enable") - ISSUED = 2, _("Issued") - REVOKED = 3, _("Revoked") - EXPIRED = 4, _("Expired") + REQUIRED = 2, _("Required") + ISSUED = 3, _("Issued") + REVOKED = 4, _("Revoked") + EXPIRED = 5, _("Expired") id_string = models.CharField(max_length=250) verified = models.BooleanField() diff --git a/idhub/templates/idhub/base.html b/idhub/templates/idhub/base.html index 29ccb1d..f279027 100644 --- a/idhub/templates/idhub/base.html +++ b/idhub/templates/idhub/base.html @@ -110,8 +110,8 @@