MediaWiki  master
UsernameAuthenticationRequest.php
Go to the documentation of this file.
1 <?php
22 namespace MediaWiki\Auth;
23 
31 
36  public function getFieldInfo() {
37  return [
38  'username' => [
39  'type' => 'string',
40  'label' => wfMessage( 'userlogin-yourname' ),
41  'help' => wfMessage( 'authmanager-username-help' ),
42  ],
43  ];
44  }
45 }
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
This is a value object for authentication requests.
AuthenticationRequest to ensure something with a username is present.
getFieldInfo()
Fetch input field info.The field info is an associative array mapping field names to info arrays....