Keyword

Bug in registration on K2 with captcha

  • Miroslav Ernst
  • Miroslav Ernst's Avatar Topic Author
  • Offline
  • Junior Member
More
1 month 21 hours ago - 1 month 10 hours ago #169717 by Miroslav Ernst
Miroslav Ernst created the topic: Bug in registration on K2 with captcha
when I sign up for a user, captcha will show me a bug Can not verify that you are not a robot. (variable K2_COULD_NOT_VERIFY_THAT_YOU_ARE_NOT_A_ROBOT). Captcha is set correctly and works in other locations OK.

joomla 3.8.13. K2 2.9 www.eshop-diochi.cz/cs/login/registrace

Captcha returns a timeout-or-duplicate error. If I think correctly, the recaptcha v2 check is online with javascript, and if the form is sent by a button, the check will re-run.
Therefore, it is not necessary to call verificationRecaptcha.
There is an error in the code. This does not allow registration with captcha.
Also, it is not good that all form fields are checked online, but only the captcha is checked after completing the form.

This error occurs to me since September 25, 2018, probably at the time, something changed in captcha or K2.
Last Edit: 1 month 10 hours ago by Miroslav Ernst.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
4 weeks 1 day ago #169756 by Fotis
Fotis replied the topic: Bug in registration on K2 with captcha
K2 uses its own implementation of reCaptcha, not Joomla's. You need to copy your keys in K2's settings as well.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • Miroslav Ernst
  • Miroslav Ernst's Avatar Topic Author
  • Offline
  • Junior Member
More
4 weeks 1 day ago #169768 by Miroslav Ernst
Miroslav Ernst replied the topic: Bug in registration on K2 with captcha
I know it and I have it correctly.
the captcha is displayed correctly, but it does not scan properly.

Registration is done in /components/com_k2/templates/register.php.
Calling the captcha scan feature is in /components/com_k2/templates/register.php
and verifyRecaptcha () is in components / com_k2 / helpers / utilities.php.
But in the verifyRecaptcha () function, there is an error, Captcha there returns the timeout-or-duplicate error.
I do not know whether I am thinking correctly, but the recaptcha v2 check is done online by javascript, and if the form is sent with a button, the check will be done again.

I had to /home/components/com_k2/helpers/utilities.php edit the verifyRecaptcha () function to always return true. Otherwise, it was not possible to register.
However, this is not a good solution.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
4 weeks 1 day ago #169780 by Fotis
Fotis replied the topic: Bug in registration on K2 with captcha
The function there simply checks if the POST request's verification (from the clicked reCaptcha button) is valid. Are you sure nothing else intercepts that? Any JS issues perhaps?


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • Miroslav Ernst
  • Miroslav Ernst's Avatar Topic Author
  • Offline
  • Junior Member
More
4 weeks 1 day ago - 4 weeks 1 day ago #169784 by Miroslav Ernst
Miroslav Ernst replied the topic: Bug in registration on K2 with captcha
I have returned my changes in /components/com_k2/helpers /utilities.php.

Try registering at www.eshop-diochi.cz/en/login/registrace .

There are no JS errors in the console.

captcha returns a timeout-or-duplicate error.
captcha on other sites works well

this error occurs since September 26, 2018.
It is possible that there has been some change of evaluation by google recaptcha
Last Edit: 4 weeks 1 day ago by Miroslav Ernst.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
4 weeks 5 hours ago #169799 by Fotis
Fotis replied the topic: Bug in registration on K2 with captcha
The URL you sent returns 404.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • Miroslav Ernst
  • Miroslav Ernst's Avatar Topic Author
  • Offline
  • Junior Member
More
4 weeks 4 hours ago #169801 by Miroslav Ernst
Miroslav Ernst replied the topic: Bug in registration on K2 with captcha

Please Log in or Create an account to join the conversation.

More
3 weeks 6 days ago #169803 by medicinemagazine
medicinemagazine replied the topic: Bug in registration on K2 with captcha
go to setting then you can fix it

Please Log in or Create an account to join the conversation.

  • Miroslav Ernst
  • Miroslav Ernst's Avatar Topic Author
  • Offline
  • Junior Member
More
3 weeks 6 days ago #169804 by Miroslav Ernst
Miroslav Ernst replied the topic: Bug in registration on K2 with captcha
I do not understand. As?

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
3 weeks 3 days ago #169860 by Fotis
Fotis replied the topic: Bug in registration on K2 with captcha
There's a JS issue on "submit": jmp.sh/K0PooDP (at the core.js file - which is part of Joomla)


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

Moderators: william white