From 541f378ee65692ed896ada7e443e301fe4f3d186 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 11 Mar 2024 12:53:27 +0100 Subject: [PATCH] trans response message of verify --- oidc4vp/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oidc4vp/models.py b/oidc4vp/models.py index 2ed3d30..35085fd 100644 --- a/oidc4vp/models.py +++ b/oidc4vp/models.py @@ -286,10 +286,10 @@ class OAuth2VPToken(models.Model): } verification = json.loads(self.result_verify) if verification.get('errors') or verification.get('warnings'): - response["verify"] = "Error, Verification Failed" + response["verify"] = "Error, {}".format(_("Failed verification")) return response - response["verify"] = "Ok, Verification correct" + response["verify"] = "Ok, {}".format(_("Correct verification")) url = self.get_redirect_url() if url: response["redirect_uri"] = url