diff --git a/CHANGELOG.md b/CHANGELOG.md index 02bca91f55..275dc84883 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Implement lazyloading for product card images to improve above-the-fold rendering [#944](https://github.com/bigcommerce/stencil/pull/944) - Print a readable error instead of dumping the whole error object to the console [#950](https://github.com/bigcommerce/cornerstone/pull/950) - Fixed homepage featured products floating left and unecessarily wrapping to next row [#948](https://github.com/bigcommerce/cornerstone/pull/948) +- Add google recaptcha v2 support to cornerstone. [#951](https://github.com/bigcommerce/cornerstone/pull/951) ## 1.5.3 (2017-02-23) - Show 'Write a Review' link for mobile [#922](https://github.com/bigcommerce/stencil/pull/922) diff --git a/lang/en.json b/lang/en.json index 391dff64fa..8c74042eff 100644 --- a/lang/en.json +++ b/lang/en.json @@ -236,7 +236,6 @@ }, "create_account": { "heading": "New Account", - "captcha_heading": "Security Question", "created": { "heading": "Your account has been created", "intro": "Thank you for creating your account at {store_name}. Your account details have been emailed to {email}", @@ -469,8 +468,6 @@ "phone": "Phone Number", "order": "Order Number", "rma": "RMA Number", - "captcha": "Are you human?", - "captcha_desc": "Please copy the characters from the image into the text field below. Doing this helps us prevent automated submissions.", "question": "Comments/Questions", "submit": "Submit Form", "successful": "We've received your feedback and will respond shortly if required. Continue." @@ -581,12 +578,10 @@ "new": "New Products", "warranty": "Warranty Information", "reviews": { - "captcha_heading": "Security Question", "hide": "Hide Reviews", "new": "Write a Review", "show": "Show Reviews", "header": "{total, plural, =0{0 Reviews} one {# Review} other {# Reviews}}", - "rating": "Rating", "link_to_review": "({total, plural, =0{No reviews yet} one {# review} other {# reviews}})", "post_on_by": "Posted by { name } on { date }", "rating_label": "Rating", diff --git a/templates/components/page/contact-us-form.html b/templates/components/page/contact-us-form.html index 5aa9c70ce1..a73eb40134 100644 --- a/templates/components/page/contact-us-form.html +++ b/templates/components/page/contact-us-form.html @@ -47,26 +47,6 @@ {{/if}} - {{#if forms.contact.recaptcha.enabled}} -
-
-

{{lang 'forms.contact_us.captcha'}}

-
-
- - -
-
- {{/if}} -
+ {{{forms.contact.recaptcha.markup}}} +
diff --git a/templates/components/products/modals/writeReview.html b/templates/components/products/modals/writeReview.html index e956ea1f0a..81f0ba9fa4 100644 --- a/templates/components/products/modals/writeReview.html +++ b/templates/components/products/modals/writeReview.html @@ -41,24 +41,7 @@
{{ product.title }}
{{> components/common/forms/multiline name="revtext" required="true" label=(lang 'products.reviews.form_write.comments')}} - {{#if product.reviews.captcha}} -
-

{{lang 'products.reviews.captcha_heading' }}

-
-
- - -
- {{/if}} + {{{product.reviews.recaptcha.markup}}}
{{lang 'create_account.heading' }} {{inject 'required' (lang 'common.required')}} {{inject 'state_error' (lang 'errors.state_error')}}
- {{#if forms.create_account.recaptcha.enabled }} -
-
-

{{lang 'create_account.captcha_heading' }}

-
-
- - -
-
- {{/if}} + {{{ forms.create_account.recaptcha.markup}}}