fixed interface involving password text (fixes #8)

This commit is contained in:
Jacob G 2015-01-11 20:41:29 -05:00
parent 7fda23dc76
commit 6ec0e602ad
2 changed files with 120 additions and 120 deletions

View file

@ -1,118 +1,118 @@
<?php <?php
# ######## Configuration variables ######## # ######## Configuration variables ########
# IMPORTANT: DO NOT EDIT THIS FILE # IMPORTANT: DO NOT EDIT THIS FILE
# When configuring globals, set them at LocalSettings.php instead # When configuring globals, set them at LocalSettings.php instead
# Set the person's bio as their userpage? # Set the person's bio as their userpage?
$wgMakeUserPageFromBio = true; $wgMakeUserPageFromBio = true;
# Text to add to bio pages if the above option is on # Text to add to bio pages if the above option is on
$wgAutoUserBioText = ''; $wgAutoUserBioText = '';
# Create a user talk page with a welcome message for accepted users. # Create a user talk page with a welcome message for accepted users.
# The message can be customized by editing MediaWiki:confirmaccount-welc. # The message can be customized by editing MediaWiki:confirmaccount-welc.
$wgAutoWelcomeNewUsers = true; $wgAutoWelcomeNewUsers = true;
# How long to store rejected requests # How long to store rejected requests
$wgRejectedAccountMaxAge = 7 * 24 * 3600; // 1 week $wgRejectedAccountMaxAge = 7 * 24 * 3600; // 1 week
# How long after accounts have been requested/held before they count as 'rejected' # How long after accounts have been requested/held before they count as 'rejected'
$wgConfirmAccountRejectAge = 30 * 24 * 3600; // 1 month $wgConfirmAccountRejectAge = 30 * 24 * 3600; // 1 month
# How many requests can an IP make at once? # How many requests can an IP make at once?
$wgAccountRequestThrottle = 1; $wgAccountRequestThrottle = 1;
# Can blocked users with "prevent account creation" request accounts? # Can blocked users with "prevent account creation" request accounts?
$wgAccountRequestWhileBlocked = false; $wgAccountRequestWhileBlocked = false;
# Which form elements to show at Special:RequestAccount # Which form elements to show at Special:RequestAccount
$wgConfirmAccountRequestFormItems = array( $wgConfirmAccountRequestFormItems = array(
# Let users make names other than their "real name" # Let users make names other than their "real name"
'UserName' => array( 'enabled' => true ), 'UserName' => array( 'enabled' => true ),
# Real name of user # Real name of user
'RealName' => array( 'enabled' => false ), 'RealName' => array( 'enabled' => false ),
# Biographical info # Biographical info
'Biography' => array( 'enabled' => false, 'minWords' => 0 ), 'Biography' => array( 'enabled' => false, 'minWords' => 0 ),
# Interest checkboxes (defined in MediaWiki:requestaccount-areas) # Interest checkboxes (defined in MediaWiki:requestaccount-areas)
'AreasOfInterest' => array( 'enabled' => true ), 'AreasOfInterest' => array( 'enabled' => true ),
# CV/resume attachment option # CV/resume attachment option
'CV' => array( 'enabled' => false ), 'CV' => array( 'enabled' => false ),
# Additional non-public info for reviewer # Additional non-public info for reviewer
'Notes' => array( 'enabled' => true ), 'Notes' => array( 'enabled' => true ),
# Option to place web URLs that establish the user # Option to place web URLs that establish the user
'Links' => array( 'enabled' => false ), 'Links' => array( 'enabled' => false ),
# Terms of Service checkbox # Terms of Service checkbox
'TermsOfService' => array( 'enabled' => true ), 'TermsOfService' => array( 'enabled' => true ),
); );
# If files can be attached, what types can be used? (MIME data is checked) # If files can be attached, what types can be used? (MIME data is checked)
$wgAccountRequestExts = array( 'txt', 'pdf', 'doc', 'latex', 'rtf', 'text', 'wp', 'wpd', 'sxw' ); $wgAccountRequestExts = array( 'txt', 'pdf', 'doc', 'latex', 'rtf', 'text', 'wp', 'wpd', 'sxw' );
# Prospective account request types. # Prospective account request types.
# Format is an array of (integer => (subpage param,user group,autotext)) pairs. # Format is an array of (integer => (subpage param,user group,autotext)) pairs.
# The integer keys enumerate the request types. The key for a type should not change. # The integer keys enumerate the request types. The key for a type should not change.
# Each type has its own request queue at Special:ConfirmAccount/<subpage param>. # Each type has its own request queue at Special:ConfirmAccount/<subpage param>.
# When a request of a certain type is approved, the new user: # When a request of a certain type is approved, the new user:
# (a) is placed in the <user group> group (if not User or *) # (a) is placed in the <user group> group (if not User or *)
# (b) has <autotext> appended to his or her user page # (b) has <autotext> appended to his or her user page
$wgAccountRequestTypes = array( $wgAccountRequestTypes = array(
0 => array( 'authors', 'user', null ) 0 => array( 'authors', 'user', null )
); );
# If set, will add {{DEFAULTSORT:sortkey}} to userpages for auto-categories. # If set, will add {{DEFAULTSORT:sortkey}} to userpages for auto-categories.
# The sortkey will be made by doing a regex search and replace on the title. # The sortkey will be made by doing a regex search and replace on the title.
# Set this variable to false to avoid sortkey use. # Set this variable to false to avoid sortkey use.
$wgConfirmAccountSortkey = false; $wgConfirmAccountSortkey = false;
// For example, the below will do {{DEFAULTSORT:firstname, lastname}} // For example, the below will do {{DEFAULTSORT:firstname, lastname}}
# $wgConfirmAccountSortkey = array( '/^(.+) ([^ ]+)$/', '$2, $1' ); # $wgConfirmAccountSortkey = array( '/^(.+) ([^ ]+)$/', '$2, $1' );
# IMPORTANT: do we store the user's notes and credentials # IMPORTANT: do we store the user's notes and credentials
# for sucessful account request? This will be stored indefinetely # for sucessful account request? This will be stored indefinetely
# and will be accessible to users with crediential lookup permissions # and will be accessible to users with crediential lookup permissions
$wgConfirmAccountSaveInfo = true; $wgConfirmAccountSaveInfo = true;
# Send an email to this address when account requestors confirm their email. # Send an email to this address when account requestors confirm their email.
# Set to false to skip this # Set to false to skip this
$wgConfirmAccountContact = false; $wgConfirmAccountContact = false;
# If ConfirmEdit is installed and set to trigger for createaccount, # If ConfirmEdit is installed and set to trigger for createaccount,
# inject catpchas for requests too? # inject catpchas for requests too?
$wgConfirmAccountCaptchas = true; $wgConfirmAccountCaptchas = true;
# Storage repos. Has B/C for when this used FileStore. # Storage repos. Has B/C for when this used FileStore.
$wgConfirmAccountFSRepos = array( $wgConfirmAccountFSRepos = array(
'accountreqs' => array( # Location of attached files for pending requests 'accountreqs' => array( # Location of attached files for pending requests
'name' => 'accountreqs', 'name' => 'accountreqs',
'directory' => isset( $wgFileStore['accountreqs'] ) ? 'directory' => isset( $wgFileStore['accountreqs'] ) ?
$wgFileStore['accountreqs']['directory'] : "{$IP}/images/accountreqs", $wgFileStore['accountreqs']['directory'] : "{$IP}/images/accountreqs",
'url' => isset( $wgFileStore['accountreqs'] ) ? 'url' => isset( $wgFileStore['accountreqs'] ) ?
$wgFileStore['accountreqs']['url'] : null, $wgFileStore['accountreqs']['url'] : null,
'hashLevels' => isset( $wgFileStore['accountreqs'] ) ? 'hashLevels' => isset( $wgFileStore['accountreqs'] ) ?
$wgFileStore['accountreqs']['hash'] : 3 $wgFileStore['accountreqs']['hash'] : 3
), ),
'accountcreds' => array( # Location of credential files 'accountcreds' => array( # Location of credential files
'name' => 'accountcreds', 'name' => 'accountcreds',
'directory' => isset( $wgFileStore['accountcreds'] ) ? 'directory' => isset( $wgFileStore['accountcreds'] ) ?
$wgFileStore['accountcreds']['directory'] : "{$IP}/images/accountcreds", $wgFileStore['accountcreds']['directory'] : "{$IP}/images/accountcreds",
'url' => isset( $wgFileStore['accountcreds'] ) ? 'url' => isset( $wgFileStore['accountcreds'] ) ?
$wgFileStore['accountcreds']['url'] : null, $wgFileStore['accountcreds']['url'] : null,
'hashLevels' => isset( $wgFileStore['accountcreds'] ) ? 'hashLevels' => isset( $wgFileStore['accountcreds'] ) ?
$wgFileStore['accountcreds']['hash'] : 3 $wgFileStore['accountcreds']['hash'] : 3
) )
); );
# Restrict account creation # Restrict account creation
$wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['user']['createaccount'] = false; $wgGroupPermissions['user']['createaccount'] = false;
# Grant account queue rights # Grant account queue rights
$wgGroupPermissions['bureaucrat']['confirmaccount'] = true; $wgGroupPermissions['bureaucrat']['confirmaccount'] = true;
# This right has the request IP show when confirming accounts # This right has the request IP show when confirming accounts
$wgGroupPermissions['bureaucrat']['requestips'] = true; $wgGroupPermissions['bureaucrat']['requestips'] = true;
# If credentials are stored, this right lets users look them up # If credentials are stored, this right lets users look them up
$wgGroupPermissions['bureaucrat']['lookupcredentials'] = true; $wgGroupPermissions['bureaucrat']['lookupcredentials'] = true;
# Show notice for open requests to admins? # Show notice for open requests to admins?
# This is cached, but still can be expensive on sites with thousands of requests. # This is cached, but still can be expensive on sites with thousands of requests.
$wgConfirmAccountNotice = true; $wgConfirmAccountNotice = true;
# End of configuration variables. # End of configuration variables.
# ######## # ########

View file

@ -221,11 +221,11 @@ class RequestAccountPage extends SpecialPage {
$form .= '<legend>' . $this->msg('requestaccount-set-pwd') . '</legend>'; $form .= '<legend>' . $this->msg('requestaccount-set-pwd') . '</legend>';
$form .= '<table border="0"> $form .= '<table border="0">
<tr> <tr>
<td>' . $this->msg('createacct-yourpassword-ph') . '</td> <td>' . $this->msg('yourpassword') . '</td>
<td><input type="password" name="pwd1" /></td> <td><input type="password" name="pwd1" /></td>
</tr> </tr>
<tr> <tr>
<td>' . $this->msg('createacct-yourpasswordagain') . '</td> <td>' . $this->msg('yourpasswordagain') . '</td>
<td><input type="password" name="pwd2" /></td> <td><input type="password" name="pwd2" /></td>
</tr> </tr>
</table>' . "\n"; </table>' . "\n";