diff --git a/lib/invisible_captcha/controller_ext.rb b/lib/invisible_captcha/controller_ext.rb index f39f972..4d240d7 100644 --- a/lib/invisible_captcha/controller_ext.rb +++ b/lib/invisible_captcha/controller_ext.rb @@ -23,6 +23,7 @@ def detect_spam(options = {}) on_timestamp_spam(options) return if performed? end + if honeypot_spam?(options) || spinner_spam? on_spam(options) end @@ -75,7 +76,7 @@ def timestamp_spam?(options = {}) end def spinner_spam? - if InvisibleCaptcha.spinner_enabled && params[:spinner] != session[:invisible_captcha_spinner] + if InvisibleCaptcha.spinner_enabled && (params[:spinner].blank? || params[:spinner] != session[:invisible_captcha_spinner]) warn_spam("Spinner value mismatch") return true end