Mew
Mew

Reputation: 1152

AngularJS reCaptcha not resetting after successful form submission

I'm using AngularJS reCaptcha to prevent from spam messages. I'm getting the reCaptcha response after successful resolve of the captcha, but the problem is when I'm submitting the form the checkbox is not resetting and I'm getting the previous captcha response. I don't get it where I went wrong.

I followed the tutorial from this link VividCortex/angular-recaptcha

Thanks in advance.

Upvotes: 0

Views: 612

Answers (1)

dimson d
dimson d

Reputation: 1660

try to reset it yourself in $http callback

this.response = null;
vcRecaptchaService.reload(this.widgetId);

Upvotes: 1

Related Questions