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

From Da Nerd Mage Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
You need to control what they can do.
You need to control what they can do.


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


Line 13: Line 13:
= Enforcing email authentication =
= Enforcing email authentication =
<p>(You'll want to have [[Wiki - Email Setup{{!}}email]] set up, of course...)</p>
<p>(You'll want to have [[Wiki - Email Setup{{!}}email]] set up, of course...)</p>
<p>Then:</p>
* <code class="mwt-code" >sudo vi LocalSettings.php</code>:
  $wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED;
  $wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED;
  $wgGroupPermissions['*']['edit'] = false;
  $wgGroupPermissions['*']['edit'] = false;
  $wgGroupPermissions['user']['edit'] = false;
  $wgGroupPermissions['user']['edit'] = false;
  $wgGroupPermissions['emailconfirmed']['edit'] = true;
  $wgGroupPermissions['emailconfirmed']['edit'] = true;
<p>The first linebasically adds anyone whose email address has been confirmed to the "emailconfirmed" group.</p>
<p>The first line basically adds anyone whose email address has been confirmed to the "emailconfirmed" group.</p>
<p>The second line means '''EVERYBODY''' is prohibited from editing.</p>
<p>The second line means '''EVERYBODY''' is prohibited from editing.</p>
<p>The third line means the same, but for '''Registered Users'''.</p>
<p>The third line means the same, but for '''Registered Users'''.</p>
Line 24: Line 27:
= What's next? =
= What's next? =


Need to take it one step further.
Might need to take it one step further.


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


[[Category:WikiServers]]
[[Category:WikiServers]]

Latest revision as of 15:33, 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

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

Then:

  • sudo vi LocalSettings.php:
$wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['emailconfirmed']['edit'] = true;

The first line basically adds anyone whose email address has been confirmed to the "emailconfirmed" group.

The second line means EVERYBODY is prohibited from editing.

The third line means the same, but for Registered Users.

The fourth line means "OK...  If your email has been confirmed, you can edit after all".

What's next?

Might need to take it one step further.

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