]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blob - includes/auth/CreationReasonAuthenticationRequest.php
MediaWiki 1.30.2-scripts2
[autoinstalls/mediawiki.git] / includes / auth / CreationReasonAuthenticationRequest.php
1 <?php
2
3 namespace MediaWiki\Auth;
4
5 /**
6  * Authentication request for the reason given for account creation.
7  * Used in logs and for notification.
8  */
9 class CreationReasonAuthenticationRequest extends AuthenticationRequest {
10         /** @var string Account creation reason (only used when creating for someone else) */
11         public $reason;
12
13         public $required = self::OPTIONAL;
14
15         public function getFieldInfo() {
16                 return [
17                         'reason' => [
18                                 'type' => 'string',
19                                 'label' => wfMessage( 'createacct-reason' ),
20                                 'help' => wfMessage( 'createacct-reason-help' ),
21                         ],
22                 ];
23         }
24 }