Thread:Project:Support desk/registering and login/reply

Hi!

You can stop registration by making your wiki private. See Manual:Preventing_access‎.

For disabling login you could add the following code to LocalSettings.php:

function LessSpecialPages(&$list) { unset( $list['Userlogout'] ); unset( $list['Userlogin'] ); return true; } $wgHooks['SpecialPage_initList'][]='LessSpecialPages';
 * 1) disable login and logout functions for all users

// remove login and logout buttons for all users function StripLogin(&$personal_urls, &$wgTitle) { unset( $personal_urls["login"] ); unset( $personal_urls["logout"] ); unset( $personal_urls['anonlogin'] ); return true; } $wgHooks['PersonalUrls'][] = 'StripLogin'; However, if your users are clever enough, they still might be able to login anyway, e.g. via the API or by typing the URL of the login page. I don't see an effected way of preventing that as well; especially not, if admins should be allowed to login and - while they are not yet logged in - you have no way to differentiate, whether a certain is is an admin and so should be allowed, or if he is not and so should be fobidden. MediaWiki is not made for a situation, in which login is not allowed.