death_by_captcha 0.4.2.0 → 0.4.2.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ module DeathByCaptcha
|
|
5
5
|
Response = Struct.new( :code, :challenge )
|
6
6
|
|
7
7
|
@@default_options = { report: true }
|
8
|
-
|
8
|
+
|
9
9
|
def self.default_options
|
10
10
|
@@default_options
|
11
11
|
end
|
@@ -79,7 +79,7 @@ module DeathByCaptcha
|
|
79
79
|
|
80
80
|
raise CaptchaInvalid if textarea_node.nil?
|
81
81
|
rescue CaptchaInvalid
|
82
|
-
DeathByCaptcha.report( captcha_status["captcha"] ) if options[:report] ==
|
82
|
+
DeathByCaptcha.report( captcha_status["captcha"] ) if options[:report] == true
|
83
83
|
raise CaptchaInvalid
|
84
84
|
end
|
85
85
|
|