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};