From f1129e48b3616306be5cfd6b6056773c4e49c249 Mon Sep 17 00:00:00 2001 From: nikrou Date: Mon, 24 Jul 2006 15:49:16 +0000 Subject: small improvement (related to bug 451): incorrect auto_login_key dont delete key in users table but just delete remember_me cookie git-svn-id: http://piwigo.org/svn/trunk@1494 68402e56-0260-453c-a942-63ccdbb3a9ee --- identification.php | 7 ------- 1 file changed, 7 deletions(-) (limited to 'identification.php') diff --git a/identification.php b/identification.php index eba8834c0..192511ac2 100644 --- a/identification.php +++ b/identification.php @@ -88,13 +88,6 @@ SELECT auto_login_key } else { - // Hacking attempt! - $query = ' -UPDATE '.USERS_TABLE.' - SET auto_login_key=\''.$auto_login_key.'\' - WHERE '.$conf['user_fields']['id'].' = '.$user_id.' -;'; - pwg_query($query); setcookie($conf['remember_me_name'], '', 0, cookie_path()); redirect(empty($redirect_to) ? make_index_url() : $redirect_to); } -- cgit v1.2.3