Page MenuHomeSoftware Heritage

swh-web/config: Allow to enable/disable reCAPTCHA integration

Authored by anlambert on Jan 25 2019, 7:10 PM.



Save code now forms are currently protected by reCAPTCHA to prevent bots.

While this is important for production, it is quite cumbersome for local
development. So allow to disable the use of reCAPTCHA through the new
configuration entry grecaptcha.activated.

Related T1496

Test Plan

Tests have been added for that new feature.

Diff Detail

rDWAPPS Web applications
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

anlambert created this revision.Jan 25 2019, 7:10 PM
anlambert updated this revision to Diff 3207.Jan 25 2019, 7:11 PM

Update: Fix typo in commit log

anlambert edited the summary of this revision. (Show Details)Jan 25 2019, 7:13 PM
vlorentz accepted this revision.Jan 26 2019, 10:47 PM
vlorentz added a subscriber: vlorentz.

And it fixes the issue of including Google's JS on pages that don't need it :)

This revision is now accepted and ready to land.Jan 26 2019, 10:47 PM
This revision was automatically updated to reflect the committed changes.