Skip to content

Commit

Permalink
Run invisible_captcha only on create action
Browse files Browse the repository at this point in the history
  • Loading branch information
markets committed May 2, 2024
1 parent 5a2b32c commit fb93484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fb93484

Please sign in to comment.