LocalSettings
|
$wgMakeUserPageFromBio = false;
$wgUseRealNamesOnly = false;
$wgAccountRequestMinWords = 0;
$wgAccountRequestToS = false;
$wgAccountRequestExtraInfo = false;
$wgConfirmAccountContact = false;
$wgConfirmAccountCaptchas = false;
$wgAllowAccountRequestFiles = false;
$wgConfirmAccountNotice = true;
|
|
System messages
I also adjusted the following system messages to suit our site:
Adjust code to notify an admin of requests
The ConfirmAccount extension does not provide an email notification to administrators when a user requests a new account. There are also no hooks in the user main system allowing an administrator confirmation to be gracefully added, so unfortunately a code-base hack was required to implement this. It has been done by changing line 583 of RequestAccount_body.php which has the following content:
|
<php>return $user->sendMail(
wfMsg( 'requestaccount-email-subj' ),
wfMsg( 'requestaccount-email-body',
wfGetIP(),
$user->getName(),
$url,
$wgContLang->timeanddate( $expiration, false ),
$wgContLang->date( $expiration, false ),
$wgContLang->time( $expiration, false )
)
);</php>
|
|
Insert the following before the return statement to send a message to ad admin first.
|
<php>User::newFromName( 'ADMIN-USER-NAME' )->sendMail(
"A new user \"" . $user->getName() . "\" has requested an account on OrganicDesign",
"A new user \"" . $user->getName() . "\" (" . wfGetIP() . ") has requested an account on OrganicDesign.
Manage account requests at the following link,
https://www.organicdesign.co.nz/Special:ConfirmAccounts"
);</php>
|
|