Skip to content

Commit

Permalink
feat: upgrade recaptcha token named value (#2607)
Browse files Browse the repository at this point in the history
  • Loading branch information
infantesimone authored Nov 28, 2024
1 parent 329382e commit e90eea9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<policies>
<inbound>
<!-- Check google reCAPTCHA token validity START -->
<set-variable name="recaptchaSecret" value="{{google-recaptcha-secret}}" />
<set-variable name="recaptchaSecret" value="{{ecommerce-for-checkout-google-recaptcha-secret}}" />
<set-variable name="recaptchaToken" value="@(context.Request.OriginalUrl.Query.GetValueOrDefault("recaptchaResponse"))" />
<choose>
<when condition="@(context.Variables["recaptchaToken"] == null || context.Variables["recaptchaToken"] == "")">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<policies>
<inbound>
<!-- Check google reCAPTCHA token validity START -->
<set-variable name="recaptchaSecret" value="{{google-recaptcha-secret}}" />
<set-variable name="recaptchaSecret" value="{{ecommerce-for-checkout-google-recaptcha-secret}}" />
<set-variable name="recaptchaToken" value="@(context.Request.OriginalUrl.Query.GetValueOrDefault("recaptchaResponse"))" />
<choose>
<when condition="@(context.Variables["recaptchaToken"] == null || context.Variables["recaptchaToken"] == "")">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<inbound>
<base />
<!-- Check google reCAPTCHA token validity START -->
<set-variable name="recaptchaSecret" value="{{google-recaptcha-secret}}" />
<set-variable name="recaptchaSecret" value="{{ecommerce-for-checkout-google-recaptcha-secret}}" />
<set-variable name="recaptchaToken" value="@(context.Request.OriginalUrl.Query.GetValueOrDefault("recaptchaResponse"))" />
<choose>
<when condition="@(context.Variables["recaptchaToken"] == null || context.Variables["recaptchaToken"] == "")">
Expand Down

0 comments on commit e90eea9

Please sign in to comment.