Disable invisible captcha spinner

The spinner was added in version 2.0.0, so by disabling it we're keeping
the behavior we've got in existing CONSUL installations.

The problem with the spinner is installations need to add a secret token
and share it across instances (when they've got more than one), and if
they don't, invisible captcha might report false positives.

I guess we could use `Rails.application.secrets.secret_key_base` as
secret token, but since we haven't tested this feature at all, it's
better to disable it for now.
This commit is contained in:
Javi Martín
2021-08-11 00:53:03 +02:00
parent 5fc927b313
commit ddc2b0bfe8

View File

@@ -1,6 +1,7 @@
InvisibleCaptcha.setup do |config| InvisibleCaptcha.setup do |config|
config.visual_honeypots = false config.visual_honeypots = false
config.timestamp_threshold = 4.seconds config.spinner_enabled = false
config.timestamp_threshold = 4.seconds
# Leave these unset if you want to use I18n (see below) # Leave these unset if you want to use I18n (see below)
# config.error_message = 'You are a robot!' # config.error_message = 'You are a robot!'
# config.sentence_for_humans = 'If you are a human, ignore this field' # config.sentence_for_humans = 'If you are a human, ignore this field'