29 lines
640 B
PHP
29 lines
640 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Auth;
|
|
|
|
/**
|
|
* Authentication request for the reason given for account creation.
|
|
* Used in logs and for notification.
|
|
* @stable to extend
|
|
*/
|
|
class CreationReasonAuthenticationRequest extends AuthenticationRequest {
|
|
/** @var string Account creation reason (only used when creating for someone else) */
|
|
public $reason;
|
|
|
|
public $required = self::OPTIONAL;
|
|
|
|
/**
|
|
* @inheritDoc
|
|
* @stable to override
|
|
*/
|
|
public function getFieldInfo() {
|
|
return [
|
|
'reason' => [
|
|
'type' => 'string',
|
|
'label' => wfMessage( 'createacct-reason' ),
|
|
'help' => wfMessage( 'createacct-reason-help' ),
|
|
],
|
|
];
|
|
}
|
|
}
|