Page MenuHomeSoftware Heritage

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

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

Details

Summary

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

Repository
rDWAPPS Web applications
Branch
recaptcha-conf-activation
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 3743
Build 4884: tox-on-jenkinsJenkins
Build 4883: arc lint + arc unit

Event Timeline

Update: Fix typo in commit log

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.