From 6ffe12582029ad2a66fc2b0c393895fd7c8a281c Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 25 Jan 2024 17:24:27 +1100 Subject: [PATCH] Override default messages Just in case any bots have been trained to handle the gem's default messages. --- config/locales/en.yml | 4 ++-- spec/system/consumer/authentication_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index c68fcb93266..fac2ffa211a 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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." diff --git a/spec/system/consumer/authentication_spec.rb b/spec/system/consumer/authentication_spec.rb index c12cb4fb0cd..7062d99a2e4 100644 --- a/spec/system/consumer/authentication_spec.rb +++ b/spec/system/consumer/authentication_spec.rb @@ -135,7 +135,7 @@ 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