From 667814759c85737aa7c5de5fda906a2a438d7e93 Mon Sep 17 00:00:00 2001 From: Kenzaburo Ito Date: Sun, 4 Feb 2001 00:31:49 +0000 Subject: [PATCH] project support git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@145 f5dc347c-c33d-0410-90a0-b07cc1902cb9 --- manage_user_delete.php3 | 2 +- manage_user_delete_page.php3 | 2 +- manage_user_page.php3 | 42 +++++++++++++++++++++++++++++++++--- manage_user_reset.php3 | 29 ++++++++++++++++++------- manage_user_update.php3 | 2 +- 5 files changed, 63 insertions(+), 14 deletions(-) diff --git a/manage_user_delete.php3 b/manage_user_delete.php3 index 65e4ed7584..357ea860f4 100644 --- a/manage_user_delete.php3 +++ b/manage_user_delete.php3 @@ -1,6 +1,6 @@ diff --git a/manage_user_delete_page.php3 b/manage_user_delete_page.php3 index dbc08b6d35..6d9a08fa03 100644 --- a/manage_user_delete_page.php3 +++ b/manage_user_delete_page.php3 @@ -1,6 +1,6 @@ diff --git a/manage_user_page.php3 b/manage_user_page.php3 index f6389b1cc1..7c91ef38bd 100644 --- a/manage_user_page.php3 +++ b/manage_user_page.php3 @@ -1,6 +1,6 @@ @@ -53,7 +53,7 @@ : - + > @@ -61,7 +61,7 @@ : - + > @@ -125,6 +125,42 @@ +

+

+> + + + +
> + + + + + + > + + + + +
> + Projects +
+ + + +
+
+
+ \ No newline at end of file diff --git a/manage_user_reset.php3 b/manage_user_reset.php3 index 1e2f6dc9f7..47ccf5a7a4 100644 --- a/manage_user_reset.php3 +++ b/manage_user_reset.php3 @@ -1,6 +1,6 @@ @@ -15,13 +15,26 @@ exit; } - if ( $f_protected!="on" ) { - ### password is blank password - $query = "UPDATE $g_mantis_user_table - SET password='4nPtPLdAFdoxA' - WHERE id='$f_id'"; - $result = db_query( $query ); - } + ### Create random password + $t_password = create_random_password( $p_email ); + + ### create the almost unique string for each user then insert into the table + $t_password2 = crypt( $t_password ); + $query = "UPDATE $g_mantis_user_table + SET password='$t_password2' + WHERE id='$f_id'"; + $result = db_query( $query ); + +# if ( $f_protected!="on" ) { +# ### password is blank password +# $query = "UPDATE $g_mantis_user_table +# SET password='4nPtPLdAFdoxA' +# WHERE id='$f_id'"; +# $result = db_query( $query ); +# } + + ### Send notification email + email_reset( $f_id, $t_password ); ?> diff --git a/manage_user_update.php3 b/manage_user_update.php3 index b360899f5e..be2a20d62f 100644 --- a/manage_user_update.php3 +++ b/manage_user_update.php3 @@ -1,6 +1,6 @@