mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Changed profile back to deactivating user upon new password request ...
git-svn-id: file:///svn/phpbb/trunk@1165 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
38d780d1ce
commit
f3300f4996
1 changed files with 6 additions and 2 deletions
|
@ -6,7 +6,11 @@
|
||||||
* copyright : (C) 2001 The phpBB Group
|
* copyright : (C) 2001 The phpBB Group
|
||||||
* email : support@phpbb.com
|
* email : support@phpbb.com
|
||||||
*
|
*
|
||||||
|
<<<<<<< profile.php
|
||||||
* $Id$
|
* $Id$
|
||||||
|
=======
|
||||||
|
* $Id$
|
||||||
|
>>>>>>> 1.112
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
@ -764,7 +768,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$error = true;
|
$error = true;
|
||||||
echo $error_msg = (!empty($error_msg)) ? $error_msg . "<br />" . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
|
$error_msg = (!empty($error_msg)) ? $error_msg . "<br />" . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
|
||||||
}
|
}
|
||||||
} // if ... allow_avatar_upload
|
} // if ... allow_avatar_upload
|
||||||
}
|
}
|
||||||
|
@ -1431,7 +1435,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
||||||
$user_password = generate_password();
|
$user_password = generate_password();
|
||||||
|
|
||||||
$sql = "UPDATE " . USERS_TABLE . "
|
$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'];
|
WHERE user_id = " . $row['user_id'];
|
||||||
if( !$result = $db->sql_query($sql) )
|
if( !$result = $db->sql_query($sql) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue