12

How to detect if a user is cancelling the Recaptcha puzzle: enter image description here

It is possible to click outside the dialog box and close the dialog. However, there doesn't seem to be any callback to that action. It is necessary to return user to previous action.

We are initializing Recaptcha 2 programmatically like this:

grecaptcha.render('grecaptchaContainer', {
  'sitekey': OUR_SITE_KEY,
  'callback': grecaptcha_responds,
  'expired-callback': grecaptcha_expires,
});

The callback function is called, no problem.

The expired-callback function is never called. I figured this function will be called when the user cancels/waits too long. But this is not the case.

Could not find anything in the docs or on the web. Any takers?

Mosh Feu
  • 28,354
  • 16
  • 88
  • 135
Olav Kokovkin
  • 1,150
  • 1
  • 13
  • 21

0 Answers0