-
-
Notifications
You must be signed in to change notification settings - Fork 811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change: refactor captcha implementation #9595
Conversation
I get this error: () JROOT/libraries/kunena/src/Template/KunenaTemplate.php:1655 |
can you build a 6.3 version without my PR in it? I don't think this is related to my PR but that 6.3 itself is not fully working correct? @xillibit I think 6.3 is not based on the K6.2.2 yet. in 6.2 the namespace for the compiler is: KunenaScssPhp\ScssPhp\Compiler; where in 6.3 this name space is ScssPhp\ScssPhp\Compiler |
Because i haven't merged the changes from K6.2 since i have created the K6.3 after the 20 october. So i need to merge your branch before that else there will be conflicts |
Okay, so we have to wait then with testing. On my test environment it is not an issue as I do not have any css things that need to be compiled, so the error is not there for me. |
@rich20 : you can re-test now i have just merged the change from K6.2 tp avoid the error that you have |
I tested it with: If CAPTCHA - Invisible reCAPTCHA is selected - Captcha symbol is displayed It can therefore be assumed that the selection works. |
hi @rich20 thanks for testing! when selecting recaptcha v3 as your captcha plugin, you can see if it is at least loading the recapctha JS files in your browser tab. If you want I can also mail you my own captcha plugin to test with (let me know if you want this) and where to send it to), but I feel confident that if the plugins you have used are working then it works correct and should work for all Joomla captcha plugins. |
On this browser tab there is neither a script nor an error message regarding this captcha. I can only notice that this one captcha is not displayed. It works with the other two. |
@Ruud68 Can you please check this? Your captcha is not displayed anywhere, also not in the Joomla registration form. |
Good morning, offline today so quick reply via mobile. |
Sorry, I was completely off track. All works as it should and can be merged. |
Thanks for reporting back @rich20 , must admit that you scared me a little, days before the release of this plugin :) |
Add fix for #9597 |
|
Pull Request for Issue # .
Summary of Changes
refactored the captcha implementation: it is now controlled via:
Also did some changes on the display (position) of the captcha in various places where the captcha is displayed
Also removed the name="submit" from the form's submit input field > this is a technical reason: every form has a submit function with which you can programmatically (via JS) submit the form, e.g. form.submit() bit when the form has an element with a name of "submit" then this element masks that function and as such that function cannot be called again leading to potential strange behavior.
Testing Instructions
test topc / message creation / responndign with different capctha's and see if it still works correct.