OpenTreeMap / otm-core

OpenTreeMap is a collaborative platform for crowdsourced tree inventory, ecosystem services calculations, urban forestry analysis, and community engagement.
www.opentreemap.org
Other
186 stars 88 forks source link

Add django-recaptca to the user registration page #3270

Closed jwalgran closed 5 years ago

jwalgran commented 5 years ago

Overview

We are attempting to prevent spam account registrations by adding a robot test via Google's reCAPTCHA service and the django-recaptcha library.

Connects https://github.com/OpenTreeMap/otm-cloud/issues/461 Depends on https://github.com/OpenTreeMap/otm-cloud/pull/469

Demo

screen shot 2019-01-08 at 7 14 43 pm

Notes

From https://developers.google.com/recaptcha/docs/faq

reCAPTCHA v2 is not going away! We will continue to fully support and improve security and usability for v2.

reCAPTCHA v3 is intended for power users, site owners that want more data about their traffic, and for use cases in which it is not appropriate to show a challenge to the user.

Testing Instructions

NOTE: This is currently deployed to staging: https://staging.opentreemap.org/accounts/register/

jwalgran commented 5 years ago

I will be working on fixing the CI failures

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-0.02%) to 83.782% when pulling 628c31b07a1af4719324c1134234b5db45380d02 on jcw/registration-recaptcha into 7615cd5f36625823ca2076d32374e3bc35b5b487 on develop.

jwalgran commented 5 years ago

Thanks.