Skip Menu |

This queue is for tickets about the Catalyst-Controller-reCAPTCHA CPAN distribution.

Report information
The Basics
Id: 49603
Status: resolved
Priority: 0/
Queue: Catalyst-Controller-reCAPTCHA

People
Owner: ZARQUON [...] cpan.org
Requestors: bpphillips+bitcard [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: captcha_check always returns true
the final line of the sub is: return ($result->{is_valid} == $result->{is_valid}) This is ALWAYS true and doesn't match the documentation which states the subroutine will return true or false depending on the status of the captcha validation. I noticed that this line was suggested in a previous bug report (http://rt.cpan.org/Public/Bug/Display.html?id=34356) but I don't think it was correct. I would expect that you should just do: return $result->{is_valid}; Or, in one line (which was probably the original intent): return $c->stash->{recaptcha_ok} = $result->{is_valid};
fixed in version 0.5 on its way to CPAN now