DethAriel/ng-recaptcha

ng-recaptcha often returns a token in offline mode

hemmoleg opened this issue · 1 comments

Hello,

I wanted to test my error handling for the recaptcha service. What I found during testing is that most of the time the service returns a token when run in offline mode.
This issue also includes the demo provided at the "see in action" links. In the doc says you should just go to the site and set your browser to offline mode to see how the error handling works. However, most of the time you wont get an error and instead will get a legitimate token. To test this, just open the link https://dethariel.github.io/ng-recaptcha/v3 set you browser to offline and click any of the buttons. You will see that only occasionally you will get an error.

I'm submitting a:

  • [x ] bug report
  • feature request
  • question / support request
  • other

Description

ng-recaptcha returning a token in offline mode.

Steps to reproduce

  • go to https://dethariel.github.io/ng-recaptcha/v3
  • set browser to offline
  • either click 'Execute "Homepage" Action' or 'Execute "shoppingCart" Action'
  • see that most of the times instead of an error a token will be displayed

It does look like reCAPTCHA v3 can now function in offline mode as well. I'm afraid there's little I can do since the lib doesn't have control over reCAPTCHA internals.