MediaWiki REL1_34
ReCaptchaNoCaptchaAuthenticationRequest.php
Go to the documentation of this file.
1<?php
2
4
10 public function __construct() {
11 parent::__construct( null, null );
12 }
13
14 public function loadFromSubmission( array $data ) {
15 // unhack the hack in parent
16 return AuthenticationRequest::loadFromSubmission( $data );
17 }
18
19 public function getFieldInfo() {
20 $fieldInfo = parent::getFieldInfo();
21
22 return [
23 'captchaWord' => [
24 'type' => 'string',
25 'label' => $fieldInfo['captchaInfo']['label'],
26 'help' => wfMessage( 'renocaptcha-help' ),
27 ],
28 ];
29 }
30}
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Generic captcha authentication request class.
This is a value object for authentication requests.
loadFromSubmission(array $data)
Initialize form submitted form data.
getFieldInfo()
Fetch input field info.The field info is an associative array mapping field names to info arrays....