From bc080cc4bb2a3103f32d1da2631024bb75233700 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Thu, 29 Oct 2020 16:31:16 -0500 Subject: Display an error if registration was rejected due to spam --- app/controllers/auth/registrations_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/auth') 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 -- cgit