From 7123fba3ebe56876d600ed6a500316749990138e Mon Sep 17 00:00:00 2001 From: Ray Carrick Date: Thu, 26 Aug 2021 13:08:56 +0100 Subject: [PATCH] change recaptcha config test in create account --- app/controllers/registrations_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index 298525d6b1..352fa8481b 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -100,7 +100,7 @@ def create end # Determine if reCAPTCHA is enabled and if so verify it - use_recaptcha = Rails.configuration.x.application.use_recaptcha || false + use_recaptcha = Rails.configuration.x.recaptcha.enabled || false if (!use_recaptcha || verify_recaptcha(model: resource)) && resource.save if resource.active_for_authentication? set_flash_message :notice, :signed_up if is_navigational_format?