From 120b1e0c6976f7f4e9ba59a4e76ac0232528eeed Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 26 Feb 2024 18:05:19 +0100 Subject: [PATCH] fix dids of eidas1 link to organization --- idhub/admin/forms.py | 2 -- idhub/admin/views.py | 5 ----- 2 files changed, 7 deletions(-) diff --git a/idhub/admin/forms.py b/idhub/admin/forms.py index d3af58d..dc6a1da 100644 --- a/idhub/admin/forms.py +++ b/idhub/admin/forms.py @@ -401,7 +401,6 @@ class ImportCertificateForm(forms.Form): self._did = None self._s = None self._label = None - self.user = kwargs.pop('user', None) super().__init__(*args, **kwargs) def clean(self): @@ -434,7 +433,6 @@ class ImportCertificateForm(forms.Form): did=self.file_name, label=self._label, eidas1=True, - user=self.user, type=DID.Types.KEY ) diff --git a/idhub/admin/views.py b/idhub/admin/views.py index 1c5aaa4..5ead31a 100644 --- a/idhub/admin/views.py +++ b/idhub/admin/views.py @@ -840,11 +840,6 @@ class WalletConfigIssuesView(Credentials, FormView): form_class = ImportCertificateForm success_url = reverse_lazy('idhub:admin_dids') - def get_form_kwargs(self): - kwargs = super().get_form_kwargs() - kwargs['user'] = self.request.user - return kwargs - def form_valid(self, form): cred = form.save() if cred: