summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/TitleBlacklist/TitleBlacklistAuthenticationRequest.php
blob: 928a60e0781b084473449b57d2724efb229f227d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

use MediaWiki\Auth\AuthenticationRequest;

/**
 * An authentication request that allows users with sufficiently high privileges to skip the
 * title blacklist check.
 */
class TitleBlacklistAuthenticationRequest extends AuthenticationRequest {
	public $ignoreTitleBlacklist;

	public function getFieldInfo() {
		return [
			'ignoreTitleBlacklist' => [
				'type' => 'checkbox',
				'label' => wfMessage( 'titleblacklist-override' ),
				'help' => wfMessage( 'titleblacklist-override-help' ),
				'optional' => true,
			],
		];
	}
}