mediawiki-extensions-TitleB.../includes/TitleBlacklistAuthenticationRequest.php
Kunal Mehta 843434f64d Move classes into includes/
Change-Id: I24d0b37d49337efd35d12adf6adbfc403e81fa50
2018-02-15 14:35:32 -08:00

23 lines
539 B
PHP

<?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,
],
];
}
}