VividCortex / angular-recaptcha

AngularJS directive to add a reCaptcha widget to your form
http://vividcortex.github.io/angular-recaptcha/
MIT License
496 stars 257 forks source link

on-create gives me widgetId = 0 #39

Closed pambuk closed 8 years ago

pambuk commented 9 years ago

As the title says, onCreate returns 0 for widgetId

TheSharpieOne commented 9 years ago

What does you onCreate function look like. Also what does it look like in the view / on the directive?

The code simply passes the value from grecaptcha.render(...) (through a promise) which is "the ID of the newly created widget"

pambuk commented 9 years ago

Hi, I'll try to answer your questions later today (from what I remember waiting longer solved it).

rderharo commented 9 years ago

I followed the demo code and I get the same issue.

TheSharpieOne commented 8 years ago

@pambuk any update or code to post?

TheSharpieOne commented 8 years ago

Actually, I'm pretty sure reCaptcha's widget ids are just numbers, starting at 0, and going up by 1 each time a new one is instantiated.... so widgetId of 0 is fine and normal.

TheSharpieOne commented 8 years ago

@iambrosi @mtrias This can probably be closed as it is just how reCaptcha's widgetId's work and is not a defect