2016-05-07 11:21:02 +00:00
|
|
|
<?php
|
|
|
|
|
2022-04-08 13:20:08 +00:00
|
|
|
namespace MediaWiki\Extension\TitleBlacklist;
|
|
|
|
|
2016-05-07 11:21:02 +00:00
|
|
|
use MediaWiki\Auth\AuthenticationRequest;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* An authentication request that allows users with sufficiently high privileges to skip the
|
|
|
|
* title blacklist check.
|
|
|
|
*/
|
|
|
|
class TitleBlacklistAuthenticationRequest extends AuthenticationRequest {
|
2024-08-20 20:18:05 +00:00
|
|
|
/** @var bool */
|
2016-05-07 11:21:02 +00:00
|
|
|
public $ignoreTitleBlacklist;
|
|
|
|
|
|
|
|
public function getFieldInfo() {
|
|
|
|
return [
|
|
|
|
'ignoreTitleBlacklist' => [
|
|
|
|
'type' => 'checkbox',
|
|
|
|
'label' => wfMessage( 'titleblacklist-override' ),
|
|
|
|
'help' => wfMessage( 'titleblacklist-override-help' ),
|
|
|
|
'optional' => true,
|
|
|
|
],
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|