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