mediawiki-extensions-TitleB.../includes/TitleBlacklistAuthenticationRequest.php
Reedy 3113e6bf5f Namespace extension
Change-Id: I7917483168a3534d74b62dd2077026c0baa4cbe0
2022-04-08 14:24:11 +01:00

25 lines
586 B
PHP

<?php
namespace MediaWiki\Extension\TitleBlacklist;
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,
],
];
}
}