Last active
April 27, 2018 14:32
-
-
Save clivewalkden/5864974e663826baa4f68c96a9c340f4 to your computer and use it in GitHub Desktop.
Fix for Amasty GoogleInvisible ReCAPTCHA 2.1.4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: app/design/frontend/base/default/template/amasty/aminvisiblecaptcha/captcha.phtml | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- app/design/frontend/base/default/template/amasty/aminvisiblecaptcha/captcha.phtml (revision 4a453745274c5b47515d72496ca05465be86f6bc) | |
+++ app/design/frontend/base/default/template/amasty/aminvisiblecaptcha/captcha.phtml (revision ) | |
@@ -73,7 +73,9 @@ | |
tokenInput.type = 'hidden'; | |
tokenInput.name = 'amasty_invisible_token'; | |
tokenInput.value = ''; | |
- formToProtectOnPage.appendChild(tokenInput); | |
+ if (formToProtectOnPage.getInputs('hidden', 'amasty_invisible_token').length < 1) { | |
+ formToProtectOnPage.appendChild(tokenInput); | |
+ } | |
formToProtectOnPage.onsubmit = function submitProtectedForm(event) { | |
currentForm = event.target; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ticket can be found at https://support.amasty.com/index.php?/Tickets/Ticket/View/261697