Group
Extension

Matches 2

Mojolicious-Plugin-ReCAPTCHAv2 ( H/HJ/HJANSEN/Mojolicious-Plugin-ReCAPTCHAv2-1.06.tar.gz, HJANSEN, 2020; MetaCPAN )
Mojolicious-Plugin-ReCAPTCHAv2/README.pod ( view source; MetaCPAN )
ver.

=item C<x-unparseable-data-received>

The http request was completed successfully but Mojo::JSON could not
decode the response received from the reCAPTCHA server.

=back

=head1 SEE ALSO

=over 
Mojolicious-Plugin-ReCAPTCHAv2 ( H/HJ/HJANSEN/Mojolicious-Plugin-ReCAPTCHAv2-1.06.tar.gz, HJANSEN, 2020; MetaCPAN )
Mojolicious-Plugin-ReCAPTCHAv2/lib/Mojolicious/Plugin/ReCAPTCHAv2.pm ( view source; MetaCPAN )
BSTRACT: use Googles "No CAPTCHA reCAPCTHA" (reCAPTCHA v2) service in Mojolicious apps

use Mojo::JSON qw();
use Mojo::UserAgent qw();

has conf => sub { +{} };
has ua   => sub { Mojo::UserAgent->new(
    my $json = '';
                    eval { $json = Mojo::JSON::decode_json( $tx->res->body ); };

                    if ( $@ ) {
                        $c->app->log->error( 'Decoding JSON respons
nless ( $json->{'success'} == Mojo::JSON->true ) {
                            @{$err} = @{ $json->{'error-codes'} // [] };
                        }
                        $verified = $json->{'succe

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.