xmaestro / angular2-recaptcha

Angular 2 : Typescript component for Google reCaptcha
ISC License
79 stars 30 forks source link

Recaptcha g-recaptcha-response added to url #42

Closed pgawli closed 7 years ago

pgawli commented 7 years ago

Hi,

First - component is working fine and it's easy to use :)

I'm using this in registration form. After succesfull registration I navigate to user area but recaptcha response is attached to url. Looks like this http://localhost:4200/student-login?g-recaptcha-response=03AHJ_.....

Do you have any idea why and how to prevent it ?

Regards. Piotr

xmaestro commented 7 years ago

Does not look like something caused by the module. Please give more details. Thanks.

pgawli commented 7 years ago

When captcha is clicked this url is called:

https://www.google.com/recaptcha/api2/payload?c=03AHJ_Vuuoo7Y_CxhIOvN5t7iW_uTZ8n12tcmJ52V56axt7Gwx0tyZj6XnK97n4zSxPZCNJl8ItnLQ4VIQhEB0XFzLQrCtlRJJdaJsTUnOZxvLVrxMU1nsrcYOqwVEtE8ZpOeX-...............

When I'm using router to navigate to http://localhost:4200/student-login - captcha respone query string param is attached:

http://localhost:4200/student-login?g-recaptcha-response=03AHJ_VutlY3OGD3bCae8gNl9Fyp9rTOuwGcq9Bx3j0RKaOiaVT0aJSVBlr-_8Mtzs_X49269x6kkE0eMvuv-lLRN03VyPhZe274xFdiUN6e9cW83vY1T1nYH3yrzsquzk3JYmBs4ryihgaRfYl9WEBF8NH9rchLvNRCU6LtUxqnON9vIJZYQsODpo78ENnO9v7KrCpuV8wAXOqPXsDMcAtwiAyuXUk9bQDbK3QcaKovWmv3ONnakm6I4hA6QX1UT99nCSPtd8I_5PuAjmH09x0tskdIv6WlWi_efTXMnicjtnoNSnVa-.....

pgawli commented 7 years ago

Maybe this is the case:

https://developers.google.com/recaptcha/docs/verify

thorsten commented 7 years ago

@pgawli how do you handle the response as it works for me in our app

xmaestro commented 7 years ago

Closing because of no feedback from OP.