xmaestro/angular2-recaptcha

captchaResponse not being called on invisible mode

stevedeighton opened this issue · 2 comments

Hi,

My captchaResponse function is not being called when using invisible mode.

Template:

<re-captcha [size]="'invisible'" [badge]="'inline'" [site_key]="'MY KEY'" (captchaResponse)="handleCorrectCaptcha($event)"></re-captcha>

Component function:

handleCorrectCaptcha(event: string): void { console.log('captcha!'); this.recaptcha = event; }

Any ideas?

Cheers!

Same here. Did you find any solution?

You need to call execute method to get captcha executed.

Execute method can be called only when you use invisible captcha.