3 use MediaWiki\Auth\AuthenticationRequest;
6 * Authentication request for ReCaptcha v1. Unlike the parent class, no session storage is used;
7 * that's handled by Google.
9 class ReCaptchaAuthenticationRequest extends CaptchaAuthenticationRequest {
10 public function __construct() {
11 parent::__construct( null, null );
14 public function loadFromSubmission( array $data ) {
15 // unhack the hack in parent
16 return AuthenticationRequest::loadFromSubmission( $data );
19 public function getFieldInfo() {
20 $fieldInfo = parent::getFieldInfo();
25 return array_merge( $fieldInfo, [
28 'label' => wfMessage( 'recaptcha-id-label' ),
29 'help' => wfMessage( 'recaptcha-id-help' ),
33 'label' => wfMessage( 'recaptcha-label' ),
34 'help' => wfMessage( 'recaptcha-help' ),