Skip Menu |

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

Report information
The Basics
Id: 73553
Status: new
Priority: 0/
Queue: Catalyst-TraitFor-Controller-reCAPTCHA

People
Owner: Nobody in particular
Requestors: perl [...] okko.net
Cc:
AdminCc:

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



Subject: $c->forward('captcha_check') returns always true, example code accepts all solutions
From SYNOPSIS: if ( $c->forward('captcha_check') ) { $c->detach('my_form_is_ok'); } The captcha_check always returns true, so the example code accepts all captchas. Fix is simple: --- a/lib/perl5/Catalyst/TraitFor/Controller/reCAPTCHA.pm +++ b/lib/perl5/Catalyst/TraitFor/Controller/reCAPTCHA.pm @@ -52,6 +52,7 @@ sub captcha_check :Private { } $c->stash( recaptcha_ok => $res->{is_valid} ); + return $res->{is_valid}; } 1;