Difference between revisions of "Wiki - Account Self-Creation"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
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. = | |||
In <code class="mwt-code" >LocalSettings.php</code>: | |||
Set: | |||
* $wgGroupPermissions['*']['createaccount'] = true; | |||
= Enforcing email authentication = | |||
<code class="mwt-code" >$wgGroupPermissions['*']['edit'] = false;</code><br><code class="mwt-code" >$wgGroupPermissions['user']['edit'] = false;</code><br><code class="mwt-code" >$wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED;</code><br><code class="mwt-code" >$wgGroupPermissions['emailconfirmed']['edit'] = true;</code> | |||
= What's next? = | |||
[[Category:WikiServers]] | [[Category:WikiServers]] |
Revision as of 13:57, 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.
In LocalSettings.php
:
Set:
- $wgGroupPermissions['*']['createaccount'] = true;
Enforcing email authentication
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED;
$wgGroupPermissions['emailconfirmed']['edit'] = true;