MediaWiki  master
CreatedAccountAuthenticationRequest.php
Go to the documentation of this file.
1 <?php
22 namespace MediaWiki\Auth;
23 
31 
33 
35  public $id;
36 
41  public function getFieldInfo() {
42  return [];
43  }
44 
50  public function __construct( $id, $name ) {
51  $this->id = (int)$id;
52  $this->username = $name;
53  }
54 }
MediaWiki\Auth\AuthenticationRequest\OPTIONAL
const OPTIONAL
Indicates that the request is not required for authentication to proceed.
Definition: AuthenticationRequest.php:41
MediaWiki\Auth\CreatedAccountAuthenticationRequest
Returned from account creation to allow for logging into the created account Stable to extend.
Definition: CreatedAccountAuthenticationRequest.php:30
MediaWiki\Auth\CreatedAccountAuthenticationRequest\$id
int $id
User id.
Definition: CreatedAccountAuthenticationRequest.php:35
MediaWiki\Auth\CreatedAccountAuthenticationRequest\getFieldInfo
getFieldInfo()
Fetch input field info.The field info is an associative array mapping field names to info arrays....
Definition: CreatedAccountAuthenticationRequest.php:41
MediaWiki\Auth\CreatedAccountAuthenticationRequest\__construct
__construct( $id, $name)
Stable to call.
Definition: CreatedAccountAuthenticationRequest.php:50
MediaWiki\Auth\CreatedAccountAuthenticationRequest\$required
$required
Definition: CreatedAccountAuthenticationRequest.php:32
MediaWiki\Auth
Definition: AbstractAuthenticationProvider.php:22
MediaWiki\Auth\AuthenticationRequest
This is a value object for authentication requests.
Definition: AuthenticationRequest.php:38