MediaWiki  master
CreatedAccountAuthenticationRequest.php
Go to the documentation of this file.
1 <?php
22 namespace MediaWiki\Auth;
23 
30 
32 
34  public $id;
35 
36  public function getFieldInfo() {
37  return [];
38  }
39 
44  public function __construct( $id, $name ) {
45  $this->id = (int)$id;
46  $this->username = $name;
47  }
48 }
MediaWiki\Auth\AuthenticationRequest\OPTIONAL
const OPTIONAL
Indicates that the request is not required for authentication to proceed.
Definition: AuthenticationRequest.php:40
MediaWiki\Auth\CreatedAccountAuthenticationRequest
Returned from account creation to allow for logging into the created account.
Definition: CreatedAccountAuthenticationRequest.php:29
MediaWiki\Auth\CreatedAccountAuthenticationRequest\$id
int $id
User id.
Definition: CreatedAccountAuthenticationRequest.php:34
MediaWiki\Auth\CreatedAccountAuthenticationRequest\getFieldInfo
getFieldInfo()
Fetch input field info.
Definition: CreatedAccountAuthenticationRequest.php:36
MediaWiki\Auth\CreatedAccountAuthenticationRequest\__construct
__construct( $id, $name)
Definition: CreatedAccountAuthenticationRequest.php:44
MediaWiki\Auth\CreatedAccountAuthenticationRequest\$required
$required
Definition: CreatedAccountAuthenticationRequest.php:31
MediaWiki\Auth
Definition: AbstractAuthenticationProvider.php:22
MediaWiki\Auth\AuthenticationRequest
This is a value object for authentication requests.
Definition: AuthenticationRequest.php:37