moster67 Expert Licensed User Longtime User Dec 18, 2017 #1 I am using this example: https://www.b4x.com/android/forum/threads/server-login-system-filters-tutorial.39020/#content which I seem to have deployed correctly on my VPS and set up to communicate with my MySQL database (table is created in the DB). However, using the above example and after registering for a reCAPTCHA api (the invisible one just like Erel's sample), and when clicking the Register button, I always get an "invalid-request-cookie" message. See the picture below: In the log, I can see: registerHelper: {"success":false,"errorMessage":"invalid-request-cookie"} I registered using an ip-address as domain (haven't a domain associated yet) but I think it works since I get the reCAPTCHA on the web-page. Any ideas what can be the error? Edit: I was using the old version "reCAPTCHA V1" and not the invisible one as I mentioned. To resolve this, I will probably need to use one of the newer ones. Last edited: Dec 18, 2017
I am using this example: https://www.b4x.com/android/forum/threads/server-login-system-filters-tutorial.39020/#content which I seem to have deployed correctly on my VPS and set up to communicate with my MySQL database (table is created in the DB). However, using the above example and after registering for a reCAPTCHA api (the invisible one just like Erel's sample), and when clicking the Register button, I always get an "invalid-request-cookie" message. See the picture below: In the log, I can see: registerHelper: {"success":false,"errorMessage":"invalid-request-cookie"} I registered using an ip-address as domain (haven't a domain associated yet) but I think it works since I get the reCAPTCHA on the web-page. Any ideas what can be the error? Edit: I was using the old version "reCAPTCHA V1" and not the invisible one as I mentioned. To resolve this, I will probably need to use one of the newer ones.
Erel B4X founder Staff member Licensed User Longtime User Dec 18, 2017 #2 That example is based on the deprecated recaptcha API. It is better to switch to the newer nocaptcha (?) api. Upvote 0
That example is based on the deprecated recaptcha API. It is better to switch to the newer nocaptcha (?) api.
moster67 Expert Licensed User Longtime User Dec 18, 2017 #3 I suspected this could be the case but since your online example is still working, I thought it might work. I will try to implement the new one or bypass it for now until I find some time. Upvote 0
I suspected this could be the case but since your online example is still working, I thought it might work. I will try to implement the new one or bypass it for now until I find some time.
moster67 Expert Licensed User Longtime User Dec 18, 2017 #4 moster67 said: I will try to implement the new one Click to expand... In the following post, I have posted changes to do to the original project in order to get reCAPTCHA V2 to work: https://www.b4x.com/android/forum/t...tem-filters-tutorial.39020/page-3#post-553055 Upvote 0
moster67 said: I will try to implement the new one Click to expand... In the following post, I have posted changes to do to the original project in order to get reCAPTCHA V2 to work: https://www.b4x.com/android/forum/t...tem-filters-tutorial.39020/page-3#post-553055