fix return code as response

This commit is contained in:
Cayo Puigdefabregas 2023-12-11 19:16:06 +01:00
parent cfe577ae72
commit efcc794c3e
1 changed files with 3 additions and 2 deletions

View File

@ -110,8 +110,9 @@ class VerifyView(View):
vp_token.verifing()
response = vp_token.get_response_verify()
vp_token.save()
if response["redirect_uri"]:
response["response"] = "Validation Code 255255255"
if not vp_token.authorization.promotions.exists():
response["redirect_uri"] = ""
response["response"] = "Validation Code {}".format(code)
return JsonResponse(response)