mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-04 08:52:20 +02:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user