Merge "Disable standard password based auth"

This commit is contained in:
Jenkins 2016-02-29 21:36:01 +00:00 committed by Gerrit Code Review
commit 1e9616d89d
1 changed files with 8 additions and 0 deletions

View File

@ -311,3 +311,11 @@ $wgSpamBlacklistFiles = array(
"https://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1",
"https://en.wikipedia.org/w/index.php?title=MediaWiki:Spam-blacklist&action=raw&sb_ver=1"
);
# Disable password based login
function disableSomeSpecialPages(&$list) {
unset($list['Userlogin']);
return true;
}
$wgHooks['SpecialPage_initList'][]='disableSomeSpecialPages';