Skip to content

Commit 1e72f58

Browse files
committed
recaptcha fixes
replace double quotes with single quotes and deleted unused variable from validator function
1 parent 4a2b9d4 commit 1e72f58

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Read the documentation for the default features at [http://formvalidator.net/#de
7676
* **strength***Validate the strength of a password*
7777
* **server***Validate value of input on server side*
7878
* **letternumeric***Validate that the input value consists out of only letters and/or numbers*
79+
* **recaptcha** - *Validate Google [reCaptcha 2](https://www.google.com/recaptcha/intro/index.html)*
7980

8081
Read the documentation for the security module at [http://formvalidator.net/#security-validators](http://formvalidator.net/#security-validators)
8182

src/modules/security.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@
514514
*/
515515
$.formUtils.addValidator({
516516
name: 'recaptcha',
517-
validatorFunction: function (val, $el, config)
517+
validatorFunction: function (val, $el)
518518
{
519519
return grecaptcha.getResponse($el.data('validation-widget-id'));
520520
},
@@ -560,7 +560,7 @@
560560
$('[data-validation~="recaptcha"]', $form).each(function ()
561561
{
562562
var $el = $(this),
563-
div = document.createElement("DIV");
563+
div = document.createElement('DIV');
564564

565565
$el.hide();
566566
$el.parent().append(div);

0 commit comments

Comments
 (0)