pwm-project / pwm

pwm
Other
893 stars 251 forks source link

reCaptcha v2 #339

Open nakamori2017 opened 6 years ago

nakamori2017 commented 6 years ago

Hi, Google reCaptcha v1 support ended 31 Mar 2018. Is there any updated Captcha.jsp to support reCaptcha v2?

Thank you

mattock commented 6 years ago

I'm not 100% sure when reCAPTCHA v2 support appeared in Pwm. But I'm using it in production now with a ~1 month old snapshot of Pwm from Git.

jeffcasavant commented 6 years ago

Perhaps this should only be open for a terminology change then.

In signing up for a reCAPTCHA v2, you get a "Site Key" and a "Secret Key". These correspond to the PWM config fields Settings/Captcha/reCaptcha Public Key and Settings/Captcah/reCaptcha Private Key. They should probably be changed to match the v2 terminology (something like "reCaptcha v2 Site Key" and "reCaptcha v2 Secret Key").

suresh-soundararajan commented 6 years ago

@mattock Can you please confirm the latest version of PWM is working with V2 reCAPTCHA ? And In case it is working for you what changes you did to work with V2 ?

jeffcasavant commented 6 years ago

I have a snapshot from mid-April running right now. I put the site & secret key into the public & private key slots on the Captcha setup page, and it just worked. @suresh-soundararajan

mattock commented 6 years ago

@suresh-soundararajan I can't vouch for the very latest version. If you use Vagrant you could try using my puppet-pwm module which includes a Vagrantfile for creating fresh Pwm VMs from latest sources. You don't need to know Puppet to use it - it is all automatic.

If the problem is truly a bug in Pwm then using git bisect will help you pinpoint the commit that caused the issue.