return old fix

This commit is contained in:
Cayo Puigdefabregas 2024-02-14 10:46:31 +01:00
parent 7d8ab6a8fc
commit 95beec7d93
1 changed files with 3 additions and 3 deletions

View File

@ -600,7 +600,7 @@ class VerificableCredential(models.Model):
if not self.data:
return ""
if self.eidas1_did or self.is_didweb:
if self.eidas1_did:
return self.data
return self.user.decrypt_data(self.data, password)
@ -646,7 +646,7 @@ class VerificableCredential(models.Model):
self.render(domain),
self.issuer_did.get_key_material(issuer_pass)
)
if self.eidas1_did or self.is_didweb:
if self.eidas1_did:
self.data = data
else:
self.data = self.user.encrypt_data(data, password)
@ -660,7 +660,7 @@ class VerificableCredential(models.Model):
cred_path = 'credentials'
sid = self.id
if self.eidas1_did or self.is_didweb:
if self.eidas1_did:
cred_path = 'public/credentials'
sid = self.hash