I'm trying to implement reCaptcha version 2 on my umbraco v7 build that is already live.
Now I have the client-side verification working and would like to verify the key that's provided with google.
It would be ideal if I could do this with javascript but would be grateful for any solution that would work.
Thanks in advance for any help you can provide.
James
Google reCaptcha v2
Hi,
I'm trying to implement reCaptcha version 2 on my umbraco v7 build that is already live. Now I have the client-side verification working and would like to verify the key that's provided with google. It would be ideal if I could do this with javascript but would be grateful for any solution that would work.
Thanks in advance for any help you can provide. James
Forgot to say i'm on Umbraco version 7.6.4 and i can't upgrade right now due to custom document types etc.
Hi James
Have you tried Install-Package RecaptchaNet -Version 2.1.0
I then create a MasterController and add the following:
You may have to change the namespaces as I modified the code that I use to fit into what I needed.
In the controller add:
Then in the view, just add:
And if you are using jQuery/Ajax, don't forget to add: window.grecaptcha.reset();
Regards George
Thank you so much for your response, how can I install RecaptchaNet if I don't have access to VS on the server? can you install this manually?
Hi James
Just install it on your development machine, and then push up as you would any other changes.
I forgot to mention when you install it, it adds the following to your web.config.
Just add your keys in the value section.
Regards George
Thanks, I will do this asap, I will post here if I have any issues and thanks again you are a lifesaver!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" button below.
Continue discussion