talawa-api / Exports / setup/reCaptcha
Module: setup/reCaptcha
Table of contents
Functions
Functions
validateRecaptcha
▸ validateRecaptcha(string
): boolean
The function validates whether a given string matches the pattern of a reCAPTCHA token.
Parameters
Name | Type | Description |
---|---|---|
string | string | The string parameter represents the input string that needs to be validated. In this case, it is expected to be a string containing a Recaptcha response token. |
Returns
boolean
a boolean value.