mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-12-18 10:53:01 +00:00
31c59374a4
Also update MathCaptcha so that it works with recent versions of Math (and breaks with old ones). Also fix MathCaptcha API output, which used to send the question in plaintext. Bug: T110302 Change-Id: I0da671a546700110d789b79a3089460abd9cce3b Depends-On: I8b52ec8ddf494f23941807638f149f15b5e46b0c
25 lines
316 B
PHP
25 lines
316 B
PHP
<?php
|
|
|
|
/**
|
|
* Simple value object for storing a captcha question + answer.
|
|
*/
|
|
class CaptchaValue {
|
|
/**
|
|
* ID that is used to store the captcha in cache.
|
|
* @var string
|
|
*/
|
|
protected $id;
|
|
|
|
/**
|
|
* Answer to the captcha.
|
|
* @var string
|
|
*/
|
|
protected $solution;
|
|
|
|
/**
|
|
* @var mixed
|
|
*/
|
|
protected $data;
|
|
|
|
}
|