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.
10 lines
428 B
Ruby
10 lines
428 B
Ruby
InvisibleCaptcha.setup do |config|
|
|
config.visual_honeypots = false
|
|
config.spinner_enabled = false
|
|
config.timestamp_threshold = 4.seconds
|
|
# Leave these unset if you want to use I18n (see below)
|
|
# config.error_message = 'You are a robot!'
|
|
# config.sentence_for_humans = 'If you are a human, ignore this field'
|
|
# config.timestamp_error_message = 'Sorry, that was too quick! Please resubmit.'
|
|
end
|