fix SUPPORTED_CREDENTIALS hardcoded

This commit is contained in:
Cayo Puigdefabregas 2024-01-24 17:12:46 +01:00
parent f8574569ac
commit 4dc3e91b55
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import json
from django.conf import settings
from django.views.generic.edit import View, FormView
from django.shortcuts import redirect
from django.template.loader import get_template
@ -116,7 +117,7 @@ class SelectWalletView(FormView):
def get_form_kwargs(self):
kwargs = super().get_form_kwargs()
kwargs['presentation_definition'] = json.dumps(["MemberShipCard"])
kwargs['presentation_definition'] = json.dumps(settings.SUPPORTED_CREDENTIALS)
return kwargs
def form_valid(self, form):