MediaWiki
master
CreatedAccountAuthenticationRequest.php
Go to the documentation of this file.
1
<?php
7
namespace
MediaWiki\Auth
;
8
16
class
CreatedAccountAuthenticationRequest
extends
AuthenticationRequest
{
17
19
public
$required
=
self::OPTIONAL
;
20
22
public
$id
;
23
28
public
function
getFieldInfo
() {
29
return
[];
30
}
31
37
public
function
__construct
(
$id
, $name ) {
38
$this->
id
= (int)
$id
;
39
$this->username = $name;
40
}
41
}
MediaWiki\Auth\AuthenticationRequest
This is a value object for authentication requests.
Definition
AuthenticationRequest.php:28
MediaWiki\Auth\AuthenticationRequest\OPTIONAL
const OPTIONAL
Indicates that the request is not required for authentication to proceed.
Definition
AuthenticationRequest.php:31
MediaWiki\Auth\CreatedAccountAuthenticationRequest
Returned from account creation to allow for logging into the created account.
Definition
CreatedAccountAuthenticationRequest.php:16
MediaWiki\Auth\CreatedAccountAuthenticationRequest\getFieldInfo
getFieldInfo()
Fetch input field info.This will be used in the AuthManager APIs and web UIs to define API input para...
Definition
CreatedAccountAuthenticationRequest.php:28
MediaWiki\Auth\CreatedAccountAuthenticationRequest\$id
int $id
User id.
Definition
CreatedAccountAuthenticationRequest.php:22
MediaWiki\Auth\CreatedAccountAuthenticationRequest\__construct
__construct( $id, $name)
Definition
CreatedAccountAuthenticationRequest.php:37
MediaWiki\Auth\CreatedAccountAuthenticationRequest\$required
$required
Definition
CreatedAccountAuthenticationRequest.php:19
MediaWiki\Auth
Definition
AbstractAuthenticationProvider.php:7
includes
Auth
CreatedAccountAuthenticationRequest.php
Generated on Fri Jan 16 2026 02:24:23 for MediaWiki by
1.10.0