Disable standard password based auth

This patch disable the password based auth, so we are enforced to
use openid login only.

Change-Id: I3ffe75b5c7be9c490a51c28f03425f15165553b1
This commit is contained in:
Marton Kiss 2016-02-27 13:35:20 +01:00
parent bc1cad4c0d
commit 1fc30c9e2f
1 changed files with 8 additions and 0 deletions

View File

@ -307,3 +307,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';