Skip to content
Snippets Groups Projects
Commit efe0df78 authored by Balazs Varga's avatar Balazs Varga
Browse files

Disable factory userlogin page (Special:UserLogin)

Hide login and anonlogin links aren't enough, users able to open to Special:UserLogin page and try to login there. You can disable this page with this hook (see: www.mediawiki.org/wiki/Manual:Special_pages#Disabling_Special:UserLogin_and_Special:UserLogout_pages)
parent 4a5c6ae8
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,13 @@ function NoLoginLinkOnMainPage( &$personal_urls ){
}
$wgHooks['PersonalUrls'][]='NoLoginLinkOnMainPage';
# to disable factory user login
function disableUserLoginSpecialPage(&$list) {
unset($list['Userlogin']);
return true;
}
$wgHooks['SpecialPage_initList'][]='disableUserLoginSpecialPage';
// Activate Shibboleth Plugin
SetupShibAuth();
~~~
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment