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:
parent
bc1cad4c0d
commit
1fc30c9e2f
|
@ -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';
|
||||
|
||||
|
|
Loading…
Reference in New Issue