The google recapcha allows for a javascript callback to be run on recaptcha completion, by passing the name of a javascript function in an tag attribute name `data-callback`. However, the recaptcha module contains no configuration option for this.

CommentFileSizeAuthor
#2 data-callback.patch2.11 KBslefevre1
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

slefevre1 created an issue. See original summary.

slefevre1’s picture

FileSize
2.11 KB

This patch creates an admin text box to specify a javascript callback.

hass’s picture

Status: Active » Closed (duplicate)
Parent issue: » #2822129: No option for data-callback

That patch looks like a serious security problem.

ianwensink’s picture

Hi hass,

I am coming across the issue where the page scrolls down after verification on iOS10. This issue can be 'resolved' by adding a javascript callback, where you scroll back up.

The patch #2 provided by the reporter seems perfect, and not like a security risk. Can you please tell me where I'm wrong there?

Besides, the issue is not really a duplicate, since that other issue is for Drupal8.

Thanks,
Ian Wensink