fix dids of eidas1 link to organization

This commit is contained in:
Cayo Puigdefabregas 2024-02-26 18:05:19 +01:00
parent 08af99370f
commit 120b1e0c69
2 changed files with 0 additions and 7 deletions

View File

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

View File

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