mediawiki-extensions-Confir.../tests/phpunit
Kosta Harlan 10b9276855
Allow showing a CAPTCHA in response to AbuseFilter consequence
Why:

- We want to allow administrators to invoke a CAPTCHA
  if an AbuseFilter is configured to do so.

What:

- Implement the AbuseFilterCustomActions hook and define
  CaptchaConsequence, which will inform AbuseFilter's implementation
  of onConfirmEditTriggersCaptcha that it should show a CAPTCHA
- Deliberately do not register the "showcaptcha" action as a "dangerous
  action", because filters that use this action are aimed at bot
  traffic, and we don't want a bot to be able to get past the
  "showcaptcha" action just by making repeat requests

Soft depends on I110a5f5321649dcf85993a0c209ab70b9886057c

Bug: T20110
Change-Id: Ie87e3d850541c7dc44aaeb6b30489a32a0c8cc60
2024-05-12 16:16:11 +02:00
..
integration/AbuseFilter Allow showing a CAPTCHA in response to AbuseFilter consequence 2024-05-12 16:16:11 +02:00
SimpleCaptcha Use namespaced classes 2023-12-11 00:07:55 +01:00
unit Allow showing a CAPTCHA in response to AbuseFilter consequence 2024-05-12 16:16:11 +02:00
CaptchaAuthenticationRequestTest.php tests: Use static provider in AuthenticationRequestTest 2023-05-19 22:26:53 +02:00
CaptchaPreAuthenticationProviderTest.php tests: Remove redundant wgMainCacheType=hash 2024-03-29 23:03:41 +00:00
HTMLFancyCaptchaFieldTest.php Revert "Drop various class aliases" 2024-01-17 04:46:58 +00:00
HTMLReCaptchaNoCaptchaFieldTest.php Revert "Drop various class aliases" 2024-01-17 04:46:58 +00:00
QuestyCaptchaTest.php Revert "Drop various class aliases" 2024-01-17 04:46:58 +00:00
ReCaptchaNoCaptchaAuthenticationRequestTest.php Revert "Drop various class aliases" 2024-01-17 04:46:58 +00:00