mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-12 01:11:15 +00:00
Send rate limits to main captcha log
Log exceeding the badcaptcha rate limit to the main captcha log (e.g., captcha.log on the WMF cluster). So that we can measure the impact of things like https://gerrit.wikimedia.org/r/#/c/195886/ Change-Id: I2af26d23b9343e90db2f01f099c1292914bd7ac3
This commit is contained in:
parent
f0b97ad19c
commit
abb9c02d8c
|
@ -766,7 +766,7 @@ class SimpleCaptcha {
|
|||
// don't increase pingLimiter here, just check, if CAPTCHA limit exceeded
|
||||
if ( $wgUser->pingLimiter( 'badcaptcha', 0 ) ) {
|
||||
// for debugging add an proper error message, the user just see an false captcha error message
|
||||
wfDebug( 'ConfirmEdit: User reached RateLimit, preventing action.' );
|
||||
$this->log( 'User reached RateLimit, preventing action.' );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue