From fb9348435c84644255528f4ebcb7d4b729817b9c Mon Sep 17 00:00:00 2001 From: Marc Anguera Insa Date: Thu, 2 May 2024 23:55:46 +0200 Subject: [PATCH] Run invisible_captcha only on create action --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 4ce00906..1f83741f 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -3,7 +3,7 @@ class UsersController < ApplicationController before_action :user_should_be_confirmed, except: %i[signup create please_confirm] before_action :member_should_exist_and_be_active, except: %i[signup create edit show update please_confirm] - invisible_captcha if: -> { params[:from_signup].present? } + invisible_captcha only: :create, if: -> { params[:from_signup].present? } has_scope :tagged_with, as: :tag