mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Override default messages
Just in case any bots have been trained to handle the gem's default messages.
This commit is contained in:
@@ -4778,5 +4778,5 @@ See the %{link} to find out more about %{sitename}'s features and to start using
|
||||
|
||||
# Gem to prevent bot form submissions
|
||||
invisible_captcha:
|
||||
sentence_for_humans: "If you are human, ignore this field"
|
||||
timestamp_error_message: "Sorry, that was too quick! Please resubmit."
|
||||
sentence_for_humans: "Please leave empty"
|
||||
timestamp_error_message: "Please try again after 5 seconds."
|
||||
|
||||
@@ -135,7 +135,7 @@ describe "Authentication" do
|
||||
fill_in "Confirm password", with: "test12345"
|
||||
click_signup_button
|
||||
|
||||
expect(page).to have_content "Sorry, that was too quick! Please resubmit."
|
||||
expect(page).to have_content "Please try again after 5 seconds."
|
||||
end
|
||||
|
||||
it "succeeding after time threshold" do
|
||||
|
||||
Reference in New Issue
Block a user