Skip to content

Commit

Permalink
Modified reset password functionality to use g_send_reset_password to…
Browse files Browse the repository at this point in the history
… determine whether a password is set to blank or emailed to the user.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@817 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Mar 26, 2002
1 parent e045ccf commit e9923eb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions doc/ChangeLog
Expand Up @@ -12,6 +12,7 @@ Mantis
* Modified email string padding and line separation characters.
* Modified account page to show default and current project access levels.
* Modified news posting to properly limit project lists for non Administrators.
* Modified reset password functionality to use g_send_reset_password to determine whether a password is set to blank or emailed to the user.
* Added Hungarian translation.
* Added g_bug_link_tag to let users customize how to create bug links.
* Added a "jump to bugnotes" quicklink at the top of the view bug pages.
Expand Down
8 changes: 8 additions & 0 deletions doc/configuration.html
Expand Up @@ -273,6 +273,14 @@ <h2>Content</h2>
If set to off then administrators must create accounts for users. Furthermore they must notify users manually.
</td>
</tr>
<tr>
<td bgcolor="#ddddff">
$g_send_reset_password
</td>
<td bgcolor="#ffffff">
This variable toggles if the user is sent a new randomnly generated password or set to blank.
</td>
</tr>
<tr>
<td bgcolor="#ddddff">
$g_enable_email_notification
Expand Down
4 changes: 2 additions & 2 deletions lang/strings_english.txt
Expand Up @@ -415,8 +415,8 @@

# manage_user_reset.php3
$s_account_reset_protected_msg = "Account protected. Cannot reset the password.";
$s_account_reset_msg = "Account password reset...";
$s_account_reset_msg2 = "Account password set to blank...";
$s_account_reset_msg = "New password has been generated and sent to the user...";
$s_account_reset_msg2 = "Account password has been set to blank...";

# manage_user_update.php3
$s_manage_user_protected_msg = "Account protected. Access level and enabled protected. Otherwise, account has been updated...";
Expand Down
4 changes: 2 additions & 2 deletions manage_user_reset.php
Expand Up @@ -15,7 +15,7 @@

# Go with random password and email it to the user
if ( OFF == $f_protected ) {
if ( ON == $g_allow_signup ) {
if ( ON == $g_send_reset_password ) {
# Create random password
$t_password = create_random_password( $f_email );

Expand Down Expand Up @@ -62,7 +62,7 @@
if ( ON == $f_protected ) { # PROTECTED
PRINT "$s_account_reset_protected_msg<p>";
} else if ( $result ) { # SUCCESS
if ( ON == $g_allow_signup ) {
if ( ON == $g_send_reset_password ) {
PRINT "$s_account_reset_msg<p>";
} else {
PRINT "$s_account_reset_msg2<p>";
Expand Down

0 comments on commit e9923eb

Please sign in to comment.