fix
This commit is contained in:
parent
574fac40ca
commit
d03c1b017e
|
@ -267,7 +267,7 @@ class OAuth2VPToken(models.Model):
|
||||||
def verifing(self):
|
def verifing(self):
|
||||||
self.result_verify = verify_presentation(self.vp_token)
|
self.result_verify = verify_presentation(self.vp_token)
|
||||||
|
|
||||||
def get_verifing(self):
|
def get_result_verify(self):
|
||||||
if not self.result_verify:
|
if not self.result_verify:
|
||||||
return {}
|
return {}
|
||||||
return json.loads(self.result_verify)
|
return json.loads(self.result_verify)
|
||||||
|
|
|
@ -141,7 +141,7 @@ class VerifyView(View):
|
||||||
code=code
|
code=code
|
||||||
)
|
)
|
||||||
|
|
||||||
if not vp_token.authorization:
|
if not self.vp_token.authorization:
|
||||||
raise Http404("Page not Found!")
|
raise Http404("Page not Found!")
|
||||||
|
|
||||||
self.vp_token.verifing()
|
self.vp_token.verifing()
|
||||||
|
|
Loading…
Reference in New Issue