Recaptcha in Angular JS

前端 未结 4 2078
甜味超标
甜味超标 2021-01-12 23:57

I am implementing recaptcha in Angular JS, I am using \"https://github.com/VividCortex/angular-recaptcha\" url as reference. I have referred the Usage section and followed t

4条回答
  •  时光取名叫无心
    2021-01-13 00:55

    When working with angularjs and google recaptcha, the library you have used is the best option. But you have to take care of the following things for it to work.

    1. Include the library as explained into your angular project.
    2. Register your website and get the site keys.
    3. Include the widget, use your Site Key.
    4. Get the required g-captcha-response after the user solves the captcha.
    5. Make an ajax request to your server with the G-captcha-reposnse.
    6. On your backend verify the g-captcha-response using google's site verify API.

    This link has a good explaination with a working example. Google recaptcha with angularJS

提交回复
热议问题