Commit bca4864c authored by nicolasdular's avatar nicolasdular

Fix incorrect feature flag check

parent 146eef9f
...@@ -8,7 +8,7 @@ module InvisibleCaptcha ...@@ -8,7 +8,7 @@ module InvisibleCaptcha
end end
def on_honeypot_spam_callback def on_honeypot_spam_callback
return unless Feature.enabled?(:invisible_captcha) || experiment_enabled?(:signup_flow) return unless Feature.enabled?(:invisible_captcha)
invisible_captcha_honeypot_counter.increment invisible_captcha_honeypot_counter.increment
log_request('Invisible_Captcha_Honeypot_Request') log_request('Invisible_Captcha_Honeypot_Request')
...@@ -17,7 +17,7 @@ module InvisibleCaptcha ...@@ -17,7 +17,7 @@ module InvisibleCaptcha
end end
def on_timestamp_spam_callback def on_timestamp_spam_callback
return unless Feature.enabled?(:invisible_captcha) || experiment_enabled?(:signup_flow) return unless Feature.enabled?(:invisible_captcha)
invisible_captcha_timestamp_counter.increment invisible_captcha_timestamp_counter.increment
log_request('Invisible_Captcha_Timestamp_Request') log_request('Invisible_Captcha_Timestamp_Request')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment