contao icon indicating copy to clipboard operation
contao copied to clipboard

Use ALTCHA by default

Open leofeyer opened this issue 8 months ago • 6 comments

Implements #8237

Until there is a way to select the type of CAPTCHA per module, we should at least make ALTCHA the default.

leofeyer avatar Mar 28 '25 15:03 leofeyer

I don't think we should use it by default. The security question is invisible to regular users whereas our default altcha widget would be visible, no? So when updating to Contao 5.6 you would suddenly have an altcha widget visible on your website and possibly break the layout.

fritzmg avatar Mar 28 '25 16:03 fritzmg

The ALTCHA widget is pretty self-contained, so I doubt there would be any layout breaks. Of course the field would be visible, but the security question is potentially visible too, so any layout already has to take a visible CAPTCHA into account.

And the added security outweighs this anyway in my opinion.

leofeyer avatar Mar 28 '25 16:03 leofeyer

I would only add altcha if necessary. Otherwise I would want to have the security question by default, as it is always invisible to regular users.

fritzmg avatar Mar 28 '25 16:03 fritzmg

When ALTCHA is added as default, does this exclude all people with disabled Javascript from beeing able to submit these forms? (https://github.com/contao/contao/issues/7680) In that case I'm against making this a non-configurable default setting.

CMSworker avatar Mar 28 '25 16:03 CMSworker

@fritzmg If we merge #8254, there is an even better temporary (and opt-in) solution:

// contao/config/config.php
$GLOBALS['TL_FFL']['captcha'] = Contao\FormAltcha::class;

leofeyer avatar Mar 28 '25 16:03 leofeyer

Thank you!

contaoacademy avatar Mar 28 '25 18:03 contaoacademy