Skip to content

Instantly share code, notes, and snippets.

@ciencia
Created June 1, 2024 15:06
Show Gist options
  • Save ciencia/af7044d91d8fc1766a01de4d77d3a333 to your computer and use it in GitHub Desktop.
Save ciencia/af7044d91d8fc1766a01de4d77d3a333 to your computer and use it in GitHub Desktop.
MediaWiki extension ConfirmEdit log captcha challenge information
--- SimpleCaptcha/SimpleCaptcha.php 2024-03-31 11:06:25.800541068 +0200
+++ SimpleCaptcha/SimpleCaptcha.php 2024-06-01 16:01:21.220020956 +0200
@@ -1096,13 +1096,13 @@
$info = $this->retrieveCaptcha( $index );
if ( $info ) {
if ( $this->keyMatch( $word, $info ) ) {
- $this->log( "passed" );
+ $this->log( "Captcha $index passed with word $word ({$info['question']})" );
$this->clearCaptcha( $index );
$this->captchaSolved = true;
return true;
} else {
$this->clearCaptcha( $index );
- $this->log( "bad form input" );
+ $this->log( "Captcha $index failed: bad form input $word ({$info['question']})" );
$this->captchaSolved = false;
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment