diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-10-29 16:31:16 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-10-29 16:31:16 -0500 |
commit | bc080cc4bb2a3103f32d1da2631024bb75233700 (patch) | |
tree | 4d2812dcaa8f803d4954bc32d88be6a132fa7374 | |
parent | 3de376650c700be81d893554b90ac8ce27646333 (diff) |
Display an error if registration was rejected due to spam
-rw-r--r-- | app/controllers/auth/registrations_controller.rb | 2 | ||||
-rw-r--r-- | config/locales/en.yml | 2 |
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. |