mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 19:06:27 +00:00
Empty commit
This commit is contained in:
parent
22c29ba0e1
commit
ea11c1a88d
@ -272,7 +272,8 @@
|
||||
|
||||
|
||||
|
||||
$OldPassKey = db_string($LoggedUser['torrent_pass']);
|
||||
$UserInfo = user_heavy_info($UserID);
|
||||
$OldPassKey = db_string($UserInfo['torrent_pass']);
|
||||
$NewPassKey = db_string(make_secret());
|
||||
$ChangerIP = db_string($LoggedUser['IP']);
|
||||
$SQL.=",m.torrent_pass='$NewPassKey'";
|
||||
|
@ -540,6 +540,10 @@
|
||||
$HeavyUpdates['torrent_pass']=$Passkey;
|
||||
$Cache->delete_value('user_'.$Cur['torrent_pass']);
|
||||
//MUST come after the case for updating can_leech.
|
||||
|
||||
$DB->query("INSERT INTO users_history_passkeys
|
||||
(UserID, OldPassKey, NewPassKey, ChangerIP, ChangeTime) VALUES
|
||||
('$UserID', '".$Cur['torrent_pass']."', '$Passkey', '0.0.0.0', '".sqltime()."')");
|
||||
update_tracker('change_passkey', array('oldpasskey' => $Cur['torrent_pass'], 'newpasskey' => $Passkey));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user