about summary refs log tree commit diff
path: root/app/controllers/auth
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-10-29 16:31:16 -0500
committerFire Demon <firedemon@creature.cafe>2020-10-29 16:31:16 -0500
commitbc080cc4bb2a3103f32d1da2631024bb75233700 (patch)
tree4d2812dcaa8f803d4954bc32d88be6a132fa7374 /app/controllers/auth
parent3de376650c700be81d893554b90ac8ce27646333 (diff)
Display an error if registration was rejected due to spam
Diffstat (limited to 'app/controllers/auth')
-rw-r--r--app/controllers/auth/registrations_controller.rb2
1 files changed, 1 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