mediawiki-extensions-TitleB.../TitleBlacklistAuthenticationRequest.php
Gergő Tisza 17d3a9e313 Update for AuthManager
Bug: T110469
Change-Id: I9690d2fe6b172fcc85e1a8f7f91af21c6422d870
Depends-On: I8b52ec8ddf494f23941807638f149f15b5e46b0c
2016-05-12 00:23:11 +00: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,
],
];
}
}