about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/auth/registrations_controller.rb2
-rw-r--r--config/locales/en.yml2
2 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/auth/registrations_controller.rb b/app/controllers/auth/registrations_controller.rb
index c67757bbc..4dedef817 100644
--- a/app/controllers/auth/registrations_controller.rb
+++ b/app/controllers/auth/registrations_controller.rb
@@ -37,7 +37,7 @@ class Auth::RegistrationsController < Devise::RegistrationsController
 
   def create
     super do |resource|
-      return redirect_to root_path if resource.destroyed?
+      return redirect_to root_path, notice: I18n.t('about.registration.failed_kobold')  if resource.destroyed?
     end
   end
 
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 084006a2a..2fd4dfa73 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -51,6 +51,8 @@ en:
       other: users
     user_count_before: Home to
     what_is_mastodon: What is Mastodon?
+    registration:
+      failed_kobold: 'Your application failed our anti-spam check.  You may try registering again.  If you continue to receive this error, contact the admin at the email listed above.'
   accounts:
     choices_html: "%{name}'s choices:"
     endorsements_hint: You can endorse people you follow from the web interface, and they will show up here.