File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ Read the documentation for the default features at [http://formvalidator.net/#de
76
76
* ** strength** — * Validate the strength of a password*
77
77
* ** server** — * Validate value of input on server side*
78
78
* ** 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 ) *
79
80
80
81
Read the documentation for the security module at [ http://formvalidator.net/#security-validators ] ( http://formvalidator.net/#security-validators )
81
82
Original file line number Diff line number Diff line change 514
514
*/
515
515
$ . formUtils . addValidator ( {
516
516
name : 'recaptcha' ,
517
- validatorFunction : function ( val , $el , config )
517
+ validatorFunction : function ( val , $el )
518
518
{
519
519
return grecaptcha . getResponse ( $el . data ( 'validation-widget-id' ) ) ;
520
520
} ,
560
560
$ ( '[data-validation~="recaptcha"]' , $form ) . each ( function ( )
561
561
{
562
562
var $el = $ ( this ) ,
563
- div = document . createElement ( " DIV" ) ;
563
+ div = document . createElement ( ' DIV' ) ;
564
564
565
565
$el . hide ( ) ;
566
566
$el . parent ( ) . append ( div ) ;
You can’t perform that action at this time.
0 commit comments