Skip to content

Commit fb93484

Browse files
committed
Run invisible_captcha only on create action
1 parent 5a2b32c commit fb93484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/users_controller.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class UsersController < ApplicationController
33
before_action :user_should_be_confirmed, except: %i[signup create please_confirm]
44
before_action :member_should_exist_and_be_active, except: %i[signup create edit show update please_confirm]
55

6-
invisible_captcha if: -> { params[:from_signup].present? }
6+
invisible_captcha only: :create, if: -> { params[:from_signup].present? }
77

88
has_scope :tagged_with, as: :tag
99

0 commit comments

Comments
 (0)