lib/yandex_captcha/verify.rb in yandex_captcha-0.4.3.7 vs lib/yandex_captcha/verify.rb in yandex_captcha-0.4.3.8

- old
+ new

@@ -34,10 +34,10 @@ { url: url, captcha: captcha_id } end def valid_captcha?(captcha_id=nil, value=nil, request_id=nil) - true if YandexCaptcha.skip_env + return true if YandexCaptcha.skip_env response = api_check_captcha(request_id, captcha_id, value) doc = Nokogiri::XML(response) doc.xpath('//check-captcha-result/ok').any? end