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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

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.