Skip to content

Commit

Permalink
Override default messages
Browse files Browse the repository at this point in the history
Just in case any bots have been trained to handle the gem's default messages.
  • Loading branch information
dacook committed Jan 25, 2024
1 parent 55ad1ed commit 6ffe125
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
2 changes: 1 addition & 1 deletion spec/system/consumer/authentication_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ffe125

Please sign in to comment.