MediaWiki  1.34.0
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
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition: GlobalFunctions.php:1264
ReCaptchaNoCaptchaAuthenticationRequest\loadFromSubmission
loadFromSubmission(array $data)
Initialize form submitted form data.
Definition: ReCaptchaNoCaptchaAuthenticationRequest.php:14
ReCaptchaNoCaptchaAuthenticationRequest
Authentication request for ReCaptcha v2.
Definition: ReCaptchaNoCaptchaAuthenticationRequest.php:9
ReCaptchaNoCaptchaAuthenticationRequest\getFieldInfo
getFieldInfo()
Fetch input field info.The field info is an associative array mapping field names to info arrays....
Definition: ReCaptchaNoCaptchaAuthenticationRequest.php:19
ReCaptchaNoCaptchaAuthenticationRequest\__construct
__construct()
Definition: ReCaptchaNoCaptchaAuthenticationRequest.php:10
MediaWiki\Auth\AuthenticationRequest
This is a value object for authentication requests.
Definition: AuthenticationRequest.php:37
CaptchaAuthenticationRequest
Generic captcha authentication request class.
Definition: CaptchaAuthenticationRequest.php:10