KonstantinCodes / mautic-recaptcha

This Plugin brings reCAPTCHA integration to mautic.
GNU General Public License v3.0
50 stars 29 forks source link

Allow multiple instances per page, fixes #10 #11

Closed loilo closed 5 years ago

loilo commented 5 years ago

This PR decorates the name of each verification function with an MD5 hash of the form name to make multiple reCAPTCHA instances on the same page possible. This fixes issue #10.

The hash is used instead of the form name itself to make sure valid JavaScript identifier characters are appended.

KonstantinCodes commented 5 years ago

Thanks 👍

loilo commented 5 years ago

My pleasure. After all, scratching our own itch here. 😉

diamondtheta commented 3 years ago

This code is updated as I see in mautic 3.1 but It is still not working with 2 capcthas on the same page. Even if I write unique name tags to the 2 forms :( What else do I need to do? Write unique ID-s or something also? i an not pro programmer :( I only could solve it with cloning the whole form in mautic.