Skip to content

Commit 3852da9

Browse files
authored
grecaptcha validatorFunction fixed
validatorFunction should return a boolean. Hopefully this will fix it so the submit button stays disabled until user has completed the CAPTCHA.
1 parent 86900a6 commit 3852da9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/security.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@
519519
name: 'recaptcha',
520520
validatorFunction: function (val, $el)
521521
{
522-
return grecaptcha.getResponse($el.valAttr('recaptcha-widget-id'));
522+
return grecaptcha.getResponse($el.valAttr('recaptcha-widget-id')) != '';
523523
},
524524
errorMessage: '',
525525
errorMessageKey: 'badreCaptcha'

0 commit comments

Comments
 (0)