MediaWiki
master
UsernameAuthenticationRequest.php
Go to the documentation of this file.
1
<?php
22
namespace
MediaWiki\Auth
;
23
30
class
UsernameAuthenticationRequest
extends
AuthenticationRequest
{
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
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition
GlobalFunctions.php:851
MediaWiki\Auth\AuthenticationRequest
This is a value object for authentication requests.
Definition
AuthenticationRequest.php:44
MediaWiki\Auth\UsernameAuthenticationRequest
AuthenticationRequest to ensure something with a username is present.
Definition
UsernameAuthenticationRequest.php:30
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:36
MediaWiki\Auth
Definition
AbstractAuthenticationProvider.php:22
includes
auth
UsernameAuthenticationRequest.php
Generated on Sat Dec 7 2024 21:23:16 for MediaWiki by
1.10.0