Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
8 / 8 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
TitleBlacklistAuthenticationRequest | |
100.00% |
8 / 8 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
getFieldInfo | |
100.00% |
8 / 8 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\TitleBlacklist; |
4 | |
5 | use MediaWiki\Auth\AuthenticationRequest; |
6 | |
7 | /** |
8 | * An authentication request that allows users with sufficiently high privileges to skip the |
9 | * title blacklist check. |
10 | */ |
11 | class TitleBlacklistAuthenticationRequest extends AuthenticationRequest { |
12 | /** @var bool */ |
13 | public $ignoreTitleBlacklist; |
14 | |
15 | public function getFieldInfo() { |
16 | return [ |
17 | 'ignoreTitleBlacklist' => [ |
18 | 'type' => 'checkbox', |
19 | 'label' => wfMessage( 'titleblacklist-override' ), |
20 | 'help' => wfMessage( 'titleblacklist-override-help' ), |
21 | 'optional' => true, |
22 | ], |
23 | ]; |
24 | } |
25 | } |