Is there a 'lazy' way to use reCaptcha with autoform?


#1

Hi everyone,

One of the cool things about aldeed:autoform is that it saves us from having to bind an event handler to the form submit event and from writing a method to be called in the form submission. Both advantages seem to be lost when using reCaptcha:

Existing packages like Meteor-reCaptcha (Altapp or Yuea’s) requires that we bind an event handler to the form submit event so that the reCaptcha’s data gets included into the call to the form submission Method. This Method can then check if the reCaptcha fails or passes and ‘act’ accordingly.

I have read through the autoform Readme on GitHub and I cannot find any shorter solution than writing the function handling the submit event and writing the corresponding Method.

Has someone tried to do the same and managed to do it more succintly?