play-authenticate icon indicating copy to clipboard operation
play-authenticate copied to clipboard

Signup spam protection - reCAPTCHA v2.0

Open slimandslam opened this issue 9 years ago • 2 comments

Google's latest reCAPTCHA (v2.0 API) is much better than the old version. And, if your site is public, and you allow anyone to signup, then signup spam protection is a must. Can this be integrated into play-authenticate?

Demo: http://www.google.com/recaptcha/api2/demo Widget and JS API: https://developers.google.com/recaptcha/docs/display

(There is no Java example for the v2.0 API yet, afaik)

slimandslam avatar Jan 19 '15 02:01 slimandslam

I guess some amount of interop between JS and Java is needed, as you are trying to prevent signup based on client side data. Starting point should be https://github.com/joscha/play-authenticate/blob/master/samples/java/play-authenticate-usage/app/views/signup.scala.html and https://github.com/joscha/play-authenticate/blob/master/samples/java/play-authenticate-usage/app/controllers/Application.java#L81

joscha avatar Jan 19 '15 16:01 joscha

https://github.com/joscha/play-authenticate/pull/241

slimandslam avatar Jan 27 '15 05:01 slimandslam