-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add recaptcha script loader on beforeMount hook #252
Conversation
This PR adds a script to add a <script> tag reCAPTCHA that loads the reCAPTCHA script from remote. It is configurable from props, and currently it is opt-in (loadRecaptchaScript must be set to true).
Thanks for the PR. Actually I have already added this feature at another branch. But this approach seem simpler and doesn't introduce a breaking change. I think I'll use this one. |
Also please also update the README to describe the new props |
Add information about loadRecaptchaScript
🎉 |
Might need to add a setting for other parameters you use in the URL for loading recaptcha, such as language (hl)? |
@Nettsentrisk I think the user can manually setup the API's url, so it's not necessary |
Isn't there only a setting for the hostname, not the entire URL? The recaptcha API URL takes up to 3 URL parameters, so it should be possible to use all of those through this to be flexible enough. Perhaps it would be easier if the user can provide the entire URL if they want/need to. :) |
This PR adds a script to add a <script> tag reCAPTCHA that loads the reCAPTCHA script from remote.
It is configurable from props, and currently it is opt-in (loadRecaptchaScript must be set to true).