-
Notifications
You must be signed in to change notification settings - Fork 3
Service:reCAPTCHA
James H. Hill edited this page Apr 24, 2017
·
26 revisions
Get your site key from the reCAPTCHA developer portal.
https://www.google.com/recaptcha
Update the EmberJS environment configuration file in config/environment
with properties for configuring reCAPTCHA for your application.
ENV.GoogleENV = {
reCAPTCHA: {
siteKey: // site key from reCAPTCHA developer portal
}
}
Add the reCAPTCHA component to the target template page.
{{g-recaptcha-v2 onResponse=(mut response)}}
In the example above, the reCAPTCHA response string will be stored in a
variable named response. The response string can then be sent to the server
with the rest of the request to verify the person is not a robot.
See the official reCAPTHCA documentation for more information.