Subject: | Allow running this module with SPAs |
I use Mojolicious with AngularJS. Which means I don't use Mojolicious templates, but Angular templates.
Which means I have nowhere to type this: <%= recaptcha_html %>, as the template is presented to the user by JavaScript, not by Perl.
So the form that contains the CAPTCHA challenge & response, is an AJAX form. This command cannot work, it will do nothing:
$self->recaptcha;
What I need for this command to work, is for this method to accept "challenge" and "response" parameters, like this:
$self->recaptcha(challenge => $challenge, response => $response)
Then your module will work with SPAs like AngularJS apps. Could you do this for me, please?
Thanks,