Difference between revisions of "Wiki - Account Self-Creation"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
Line 6: Line 6:


= Enabling the "'''Create Account'''" link for non logged-in users. =
= Enabling the "'''Create Account'''" link for non logged-in users. =
In <code class="mwt-code" >LocalSettings.php</code>:
* <code class="mwt-code" >sudo vi LocalSettings.php</code>:


Set:
Set:
* <code class="mwt-code" >$wgGroupPermissions['*']['createaccount'] = true;</code>
$wgGroupPermissions['*']['createaccount'] = true;


= Enforcing email authentication =
= Enforcing email authentication =

Revision as of 14:01, 4 January 2022

When you run a public-facing Wiki, it's kinda handy to let users create their own accounts.

But...

You need to control what they can do.

Enabling the "Create Account" link for non logged-in users.

  • sudo vi LocalSettings.php:

Set:

$wgGroupPermissions['*']['createaccount'] = true;

Enforcing email authentication

  • $wgGroupPermissions['*']['edit'] = false;
  • $wgGroupPermissions['user']['edit'] = false;
  • $wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED;
  • $wgGroupPermissions['emailconfirmed']['edit'] = true;

What's next?