MediaWiki REL1_34
HCaptchaAuthenticationRequest.php
Go to the documentation of this file.
1<?php
2
4
7
9 public function __construct() {
10 parent::__construct( '', [] );
11 }
12
16 public function loadFromSubmission( array $data ) {
17 // unhack the hack in parent
18 return AuthenticationRequest::loadFromSubmission( $data );
19 }
20
24 public function getFieldInfo() {
25 $fieldInfo = parent::getFieldInfo();
26
27 return [
28 'captchaWord' => [
29 'type' => 'string',
30 'label' => $fieldInfo['captchaInfo']['label'],
31 'help' => \wfMessage( 'hcaptcha-help' ),
32 ],
33 ];
34 }
35}
Generic captcha authentication request class.
This is a value object for authentication requests.
getFieldInfo()
Fetch input field info.The field info is an associative array mapping field names to info arrays....
loadFromSubmission(array $data)
Initialize form submitted form data.The default behavior is to to check for each key of self::getFiel...