Skip to content

Commit babcb8b

Browse files
committedAug 14, 2012
Documentation for $g_allow_signup and $g_send_reset_password
Improves documentation and comments in config_defaults_inc.php, to reflect the dependency between these 2 variables and the consequences of having g_send_reset_password = OFF. Fixes #6263
1 parent efa18ce commit babcb8b

File tree

3 files changed

+31
-17
lines changed

3 files changed

+31
-17
lines changed
 

‎config_defaults_inc.php

+8-5
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,10 @@
292292
****************************/
293293

294294
/**
295-
* allow users to signup for their own accounts.
296-
* Mail settings must be correctly configured in order for this to work
295+
* Allow users to signup for their own accounts.
296+
* If ON, then $g_send_reset_password must be ON as well, and mail settings
297+
* must be correctly configured
298+
* @see $g_send_reset_password
297299
* @global int $g_allow_signup
298300
*/
299301
$g_allow_signup = ON;
@@ -315,9 +317,10 @@
315317
$g_notify_new_user_created_threshold_min = ADMINISTRATOR;
316318

317319
/**
318-
* if ON users will be sent their password when reset.
319-
* if OFF the password will be set to blank. If set to ON, mail settings must be
320-
* correctly configured.
320+
* If ON, users will be sent their password when their account is created
321+
* or password reset (this requires mail settings to be correctly configured).
322+
* If OFF, then the Administrator will have to provide a password when
323+
* creating new accounts, and the password will be set to blank when reset.
321324
* @global int $g_send_reset_password
322325
*/
323326
$g_send_reset_password = ON;

‎docbook/Admin_Guide/en-US/Configuration.xml

+16-9
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,12 @@
280280
<varlistentry>
281281
<term>$g_allow_signup</term>
282282
<listitem>
283-
<para>Allow users to signup for their own accounts. Default is ON.
284-
</para>
283+
<para>Allow users to signup for their own accounts.
284+
</para>
285+
<para>If ON (default), then $g_send_reset_password must be ON
286+
as well, and mail settings must be correctly configured
287+
(see <xref linkend="admin.config.email" />).
288+
</para>
285289
</listitem>
286290
</varlistentry>
287291

@@ -306,11 +310,14 @@
306310
<varlistentry>
307311
<term>$g_send_reset_password</term>
308312
<listitem>
309-
<para>When set to ON, MantisBT will email the users their new
310-
passwords when their accounts are reset. If set to OFF, the
311-
password will be reset to blank and no e-mail will be sent. Default
312-
is ON.
313-
</para>
313+
<para>If ON (default), users will be sent their password when
314+
their account is created or password reset (this requires
315+
mail settings to be correctly configured).
316+
</para>
317+
<para>If OFF, then the Administrator will have to provide
318+
a password when creating new accounts, and the password
319+
will be set to blank when reset.
320+
</para>
314321
</listitem>
315322
</varlistentry>
316323

@@ -596,11 +603,11 @@
596603
<term>$g_email_send_using_cronjob</term>
597604
<listitem>
598605
<para>Disables sending of emails as soon as an action is performed.
599-
Emails are instead queued and must be sent by running
606+
Emails are instead queued and must be sent by running
600607
scripts/send_emails.php periodically. This script can only be
601608
executed from the CLI, not from the web interface, for security
602609
reasons.</para>
603-
<para>Enabling this option can help with performance problems if large
610+
<para>Enabling this option can help with performance problems if large
604611
numbers of emails are generated or mail delivery is slow by not
605612
delaying page execution when sending emails.</para>
606613
</listitem>

‎docbook/Admin_Guide/en-US/User_Management.xml

+7-3
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,13 @@
142142
$g_default_new_account_access_level configuration option). The signup
143143
process can be enabled / disabled using the $g_allow_signup
144144
configuration option, which is enabled by default.</para>
145-
146-
<para>If email notifications ($g_enable_email_notification) is
147-
set to ON, users with access level about
145+
<para>If user signup is enabled, then it is required that
146+
$g_send_reset_password is ON as well, and the e-mail settings properly
147+
configured
148+
(see <xref linkend="admin.config.email" />).
149+
</para>
150+
<para>If email notifications ($g_enable_email_notification) is
151+
set to ON, users with access level about
148152
$g_notify_new_user_created_threshold_min will get a
149153
notification that a user account has been created. Information
150154
about the user like user name, email address, IP address are included in

0 commit comments

Comments
 (0)
Please sign in to comment.