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:
parent
5d06d43541
commit
f1129e48b3
1 changed files with 0 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue