MediaWiki  master
CreationReasonAuthenticationRequest.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Auth;
4 
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 }
Authentication request for the reason given for account creation.
string $reason
Account creation reason (only used when creating for someone else)
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
This is a value object for authentication requests.