MediaWiki
master
UsernameAuthenticationRequest.php
Go to the documentation of this file.
1
<?php
7
namespace
MediaWiki\Auth
;
8
16
class
UsernameAuthenticationRequest
extends
AuthenticationRequest
{
17
22
public
function
getFieldInfo
() {
23
return
[
24
'username'
=> [
25
'type'
=>
'string'
,
26
'label'
=>
wfMessage
(
'userlogin-yourname'
),
27
'help'
=>
wfMessage
(
'authmanager-username-help'
),
28
],
29
];
30
}
31
}
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition
GlobalFunctions.php:821
MediaWiki\Auth\AuthenticationRequest
This is a value object for authentication requests.
Definition
AuthenticationRequest.php:28
MediaWiki\Auth\UsernameAuthenticationRequest
AuthenticationRequest to ensure something with a username is present.
Definition
UsernameAuthenticationRequest.php:16
MediaWiki\Auth\UsernameAuthenticationRequest\getFieldInfo
getFieldInfo()
Fetch input field info.This will be used in the AuthManager APIs and web UIs to define API input para...
Definition
UsernameAuthenticationRequest.php:22
MediaWiki\Auth
Definition
AbstractAuthenticationProvider.php:7
includes
Auth
UsernameAuthenticationRequest.php
Generated on Fri Dec 12 2025 00:23:01 for MediaWiki by
1.10.0