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

From Da Nerd Mage Wiki
Jump to navigation Jump to search
Line 17: Line 17:
  $wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED;
  $wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED;
  $wgGroupPermissions['emailconfirmed']['edit'] = true;
  $wgGroupPermissions['emailconfirmed']['edit'] = true;
<p>(You'll want to have email set up, of course...)</p>
<p>(You'll want to have [[Wiki - Email Setup{{!}}email]] set up, of course...)</p>


= What's next? =
= What's next? =

Revision as of 15:09, 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;

(You'll want to have email set up, of course...)

What's next?

Need to take it one step further.

Set up a mechanism for registered & confirmed users to request "Editor" status?