mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
Changes related to deleting auto login keys on password change
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5442 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -696,6 +696,13 @@ if ( $mode == 'edit' || $mode == 'save' && ( isset($HTTP_POST_VARS['username'])
|
||||
message_die(GENERAL_ERROR, 'Error removing user session', '', __LINE__, __FILE__, $sql);
|
||||
}
|
||||
}
|
||||
|
||||
// We remove all stored login keys since the password has been updated
|
||||
// and change the current one (if applicable)
|
||||
if ( !empty($passwd_sql) )
|
||||
{
|
||||
session_reset_keys($user_id, $user_ip);
|
||||
}
|
||||
|
||||
$message .= $lang['Admin_user_updated'];
|
||||
}
|
||||
|
Reference in New Issue
Block a user