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

Uncaught TypeError: Cannot read property 'then' of null #84

Closed romelgomez closed 8 years ago

romelgomez commented 9 years ago

Hi VividCortex,

After passing the reCaptcha, then wait some seconds until is invalidated, the error happens when i try again pass the captcha.

screenshot from 2015-09-21 10 31 11

mtrias commented 9 years ago

+1 Good catch!

wniehof commented 9 years ago

I noticed that the solution of romelgomez works. However the message: "captcha verification expired" is also removed. It just loads a new recaptcha widget.

romelgomez commented 9 years ago

Yes, that's what happens, exactly as described by @wniehof. When the captcha expire, a new captcha is loaded, you never see the 'captcha verification expired', in this point we can say that is just a patch.