mod/recaptcha/set/all/recaptcha.rb in card-1.99.1 vs mod/recaptcha/set/all/recaptcha.rb in card-1.99.2

- old
+ new

@@ -11,20 +11,15 @@ return if recaptcha_success?(result) add_recaptcha_errors result["error-codes"] end -def consider_recaptcha? - true -end - def recaptcha_on? - consider_recaptcha? && - recaptcha_keys? && - Env[:controller] && - !Auth.signed_in? && + recaptcha_keys? && + Env[:controller] && + !Auth.signed_in? && + !Auth.always_ok? && !Auth.needs_setup? && - !Auth.always_ok? && Card.toggle(rule(:captcha)) end def add_recaptcha_errors error_codes if error_codes.present?