MediaWiki
master
CreatedAccountAuthenticationRequest.php
Go to the documentation of this file.
1
<?php
22
namespace
MediaWiki\Auth
;
23
30
class
CreatedAccountAuthenticationRequest
extends
AuthenticationRequest
{
31
33
public
$required
=
self::OPTIONAL
;
34
36
public
$id
;
37
42
public
function
getFieldInfo
() {
43
return
[];
44
}
45
51
public
function
__construct
(
$id
, $name ) {
52
$this->
id
= (int)
$id
;
53
$this->username = $name;
54
}
55
}
MediaWiki\Auth\AuthenticationRequest
This is a value object for authentication requests.
Definition
AuthenticationRequest.php:45
MediaWiki\Auth\AuthenticationRequest\OPTIONAL
const OPTIONAL
Indicates that the request is not required for authentication to proceed.
Definition
AuthenticationRequest.php:48
MediaWiki\Auth\CreatedAccountAuthenticationRequest
Returned from account creation to allow for logging into the created account.
Definition
CreatedAccountAuthenticationRequest.php:30
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:42
MediaWiki\Auth\CreatedAccountAuthenticationRequest\$id
int $id
User id.
Definition
CreatedAccountAuthenticationRequest.php:36
MediaWiki\Auth\CreatedAccountAuthenticationRequest\__construct
__construct( $id, $name)
Definition
CreatedAccountAuthenticationRequest.php:51
MediaWiki\Auth\CreatedAccountAuthenticationRequest\$required
$required
Definition
CreatedAccountAuthenticationRequest.php:33
MediaWiki\Auth
Definition
AbstractAuthenticationProvider.php:22
includes
auth
CreatedAccountAuthenticationRequest.php
Generated on Sat Jan 25 2025 02:23:27 for MediaWiki by
1.10.0