trans response message of verify

This commit is contained in:
Cayo Puigdefabregas 2024-03-11 12:53:27 +01:00
parent 88f1d659d8
commit 541f378ee6
1 changed files with 2 additions and 2 deletions

View File

@ -286,10 +286,10 @@ class OAuth2VPToken(models.Model):
} }
verification = json.loads(self.result_verify) verification = json.loads(self.result_verify)
if verification.get('errors') or verification.get('warnings'): if verification.get('errors') or verification.get('warnings'):
response["verify"] = "Error, Verification Failed" response["verify"] = "Error, {}".format(_("Failed verification"))
return response return response
response["verify"] = "Ok, Verification correct" response["verify"] = "Ok, {}".format(_("Correct verification"))
url = self.get_redirect_url() url = self.get_redirect_url()
if url: if url:
response["redirect_uri"] = url response["redirect_uri"] = url