fix return code as response
This commit is contained in:
parent
cfe577ae72
commit
efcc794c3e
|
@ -110,8 +110,9 @@ class VerifyView(View):
|
||||||
vp_token.verifing()
|
vp_token.verifing()
|
||||||
response = vp_token.get_response_verify()
|
response = vp_token.get_response_verify()
|
||||||
vp_token.save()
|
vp_token.save()
|
||||||
if response["redirect_uri"]:
|
if not vp_token.authorization.promotions.exists():
|
||||||
response["response"] = "Validation Code 255255255"
|
response["redirect_uri"] = ""
|
||||||
|
response["response"] = "Validation Code {}".format(code)
|
||||||
|
|
||||||
return JsonResponse(response)
|
return JsonResponse(response)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue