Override default messages

Just in case any bots have been trained to handle the gem's default messages.
This commit is contained in:
David Cook
2024-01-25 17:24:27 +11:00
parent 55ad1ede4e
commit 6ffe125820
2 changed files with 3 additions and 3 deletions

View File

@@ -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."

View File

@@ -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