return old fix
This commit is contained in:
parent
7d8ab6a8fc
commit
95beec7d93
|
@ -600,7 +600,7 @@ class VerificableCredential(models.Model):
|
||||||
if not self.data:
|
if not self.data:
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
if self.eidas1_did or self.is_didweb:
|
if self.eidas1_did:
|
||||||
return self.data
|
return self.data
|
||||||
|
|
||||||
return self.user.decrypt_data(self.data, password)
|
return self.user.decrypt_data(self.data, password)
|
||||||
|
@ -646,7 +646,7 @@ class VerificableCredential(models.Model):
|
||||||
self.render(domain),
|
self.render(domain),
|
||||||
self.issuer_did.get_key_material(issuer_pass)
|
self.issuer_did.get_key_material(issuer_pass)
|
||||||
)
|
)
|
||||||
if self.eidas1_did or self.is_didweb:
|
if self.eidas1_did:
|
||||||
self.data = data
|
self.data = data
|
||||||
else:
|
else:
|
||||||
self.data = self.user.encrypt_data(data, password)
|
self.data = self.user.encrypt_data(data, password)
|
||||||
|
@ -660,7 +660,7 @@ class VerificableCredential(models.Model):
|
||||||
|
|
||||||
cred_path = 'credentials'
|
cred_path = 'credentials'
|
||||||
sid = self.id
|
sid = self.id
|
||||||
if self.eidas1_did or self.is_didweb:
|
if self.eidas1_did:
|
||||||
cred_path = 'public/credentials'
|
cred_path = 'public/credentials'
|
||||||
sid = self.hash
|
sid = self.hash
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue