You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,7 @@ You can customize:
118
118
-`timestamp_error_message`: flash error message thrown when form submitted quicker than the `timestamp_threshold` value. It uses I18n by default.
119
119
-`injectable_styles`: if enabled, you should call anywhere in your layout the following helper `<%= invisible_captcha_styles %>`. This allows you to inject styles, for example, in `<head>`. False by default, styles are injected inline with the honeypot.
120
120
-`spinner_enabled`: option to disable the IP spinner validation. By default, true.
121
+
-`honeypot_enabled`: option to disable the honeypot field at the application level. By default, true.
121
122
-`secret`: customize the secret key to encode some internal values. By default, it reads the environment variable `ENV['INVISIBLE_CAPTCHA_SECRET']` and fallbacks to random value. Be careful, if you are running multiple Rails instances behind a load balancer, use always the same value via the environment variable.
122
123
123
124
To change these defaults, add the following to an initializer (recommended `config/initializers/invisible_captcha.rb`):
@@ -130,6 +131,7 @@ InvisibleCaptcha.setup do |config|
130
131
# config.timestamp_enabled = true
131
132
# config.injectable_styles = false
132
133
# config.spinner_enabled = true
134
+
# config.honeypot_enabled = true
133
135
134
136
# Leave these unset if you want to use I18n (see below)
135
137
# config.sentence_for_humans = 'If you are a human, ignore this field'
0 commit comments