- Posts: 29
COMMUNITY FORUM
Bug in registration on K2 with captcha
- Miroslav Ernst
-
Topic Author
- Offline
- Junior Member
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.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Miroslav Ernst
-
Topic Author
- Offline
- Junior Member
- Posts: 29
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.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Miroslav Ernst
-
Topic Author
- Offline
- Junior Member
- Posts: 29
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
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Miroslav Ernst
-
Topic Author
- Offline
- Junior Member
- Posts: 29
Please Log in or Create an account to join the conversation.
- medicinemagazine
-
- Offline
- New Member
Please Log in or Create an account to join the conversation.
- Miroslav Ernst
-
Topic Author
- Offline
- Junior Member
- Posts: 29
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Miroslav Ernst
-
Topic Author
- Offline
- Junior Member
- Posts: 29
How can I fix it?
jmp.sh/BNJIsWU
console: jmp.sh/q2TynSe
video - drive.google.com/file/d/1P_R6fpPsSZhBqKSHHIfyh1j6TrsoAAfe/view
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Miroslav Ernst
-
Topic Author
- Offline
- Junior Member
- Posts: 29
If I register a user by video - drive.google.com/file/d/1P_R6fpPSSZhBqKSHHIfyh1j6TrsoAAfe/view
Error JS does not report in the console but I can not register the user.
I can also give you access to administration and FTP
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Let me know please.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Miroslav Ernst
-
Topic Author
- Offline
- Junior Member
- Posts: 29
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
This reCaptcha value comes from a Joomla plugin. K2 uses its own implementation and its keys are controlled in the K2 Settings.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Miroslav Ernst
-
Topic Author
- Offline
- Junior Member
- Posts: 29
Please Log in or Create an account to join the conversation.
- Miroslav Ernst
-
Topic Author
- Offline
- Junior Member
- Posts: 29
I really think the bug is in K2.
see mujtest. 8u. cz
video
Another inaccuracy is, if I do not skip the captcha checbox and leave the registration, I have to fill the field again
video
It's tested on two different hosts, so I really think the bug is in K2
No JS conflict
I can provide credentials
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.