Skip to content

Commit baffa9e

Browse files
committed
changed name of data options
changed name of data options to indicate that they are in fact for recaptcha
1 parent 1e72f58 commit baffa9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/modules/security.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@
516516
name: 'recaptcha',
517517
validatorFunction: function (val, $el)
518518
{
519-
return grecaptcha.getResponse($el.data('validation-widget-id'));
519+
return grecaptcha.getResponse($el.data('validation-recaptcha-widget-id'));
520520
},
521521
errorMessage: '',
522522
errorMessageKey: 'badreCaptcha'
@@ -566,12 +566,12 @@
566566
$el.parent().append(div);
567567

568568
var widget_id = grecaptcha.render(div, {
569-
sitekey: sitekey || $el.valAttr('sitekey'),
569+
sitekey: sitekey || $el.valAttr('recaptcha-sitekey'),
570570
theme: theme || $el.valAttr('recaptcha-theme') || 'light'
571571
});
572572

573573
$el
574-
.data('validation-widget-id', widget_id);
574+
.data('validation-recaptcha-widget-id', widget_id);
575575
});
576576

577577
});

0 commit comments

Comments
 (0)