AngularJS directive to add a reCaptcha widget to your form
By @bjornlaurell
#176 Removed the need to manually include the Google recaptcha <script>
tag.
This also fixed #175 which was happening to many users if they loaded Google's recaptcha before the angular-recaptcha module.
Remove the <script>
tag that loads Google recaptcha API. You only need to include angular-recaptcha
and it will download Google's api only when needed.
Thanks to @felixmosh for it!
Now, the language of the reCaptcha can be configured in the directive (Thanks @reduardo7).
Example:
<div
vc-recaptcha
key="'---- YOUR PUBLIC KEY GOES HERE ----'"
ng-model="gRecaptchaResponse"
lang="es"
></div>
Includes:
vcRecaptchaService
into a provider. (@TheSharpieOne)Added type support through the type attribute, which just gets passed to
reCaptcha. Possible values are 'audio'
and 'image'
(per reCaptcha docs).
README was also update to show this attribute.
Add required to opt out of validation
Resolves #96 by adding and documenting the required attribute.
When require is false
or is a scoped variable which is false
,
the form validation will be removed.
This is opt out to prevent a breaking change and usually the validation is
preferred.
Use recaptcha expired-callback instead of a hard-coded 2 min timeout
Added documentation for changing the size