MediaWiki master
UsernameAuthenticationRequest.php
Go to the documentation of this file.
1<?php
7namespace MediaWiki\Auth;
8
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( $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.This will be used in the AuthManager APIs and web UIs to define API input para...