From f3300f49964e1a13d35f503afd31770b4cededda Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Thu, 11 Oct 2001 11:02:56 +0000 Subject: [PATCH] Changed profile back to deactivating user upon new password request ... git-svn-id: file:///svn/phpbb/trunk@1165 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/profile.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/phpBB/profile.php b/phpBB/profile.php index 6c3e65a94a..3978cbd269 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -6,7 +6,11 @@ * copyright : (C) 2001 The phpBB Group * email : support@phpbb.com * +<<<<<<< profile.php * $Id$ +======= + * $Id$ +>>>>>>> 1.112 * * ***************************************************************************/ @@ -764,7 +768,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) else { $error = true; - echo $error_msg = (!empty($error_msg)) ? $error_msg . "
" . $lang['Avatar_filetype'] : $lang['Avatar_filetype']; + $error_msg = (!empty($error_msg)) ? $error_msg . "
" . $lang['Avatar_filetype'] : $lang['Avatar_filetype']; } } // if ... allow_avatar_upload } @@ -1431,7 +1435,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) $user_password = generate_password(); $sql = "UPDATE " . USERS_TABLE . " - SET user_newpasswd = '" .md5($user_password) . "', user_actkey = '$user_actkey' + SET user_active = 0, user_newpasswd = '" .md5($user_password) . "', user_actkey = '$user_actkey' WHERE user_id = " . $row['user_id']; if( !$result = $db->sql_query($sql) ) {