Fix magnet link passkey creation for new users

Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
Yuriy Pikhtarev 2018-06-24 18:03:46 +03:00
commit 1cbc084f2e
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
5 changed files with 26 additions and 8 deletions

View file

@ -143,7 +143,7 @@ if ($tor_reged && $tor_info) {
// Magnet link
$passkey = DB()->fetch_row("SELECT auth_key FROM " . BB_BT_USERS . " WHERE user_id = " . (int)$bt_user_id . " LIMIT 1");
$tor_magnet = create_magnet($tor_info['info_hash'], $passkey['auth_key'], $userdata['session_logged_in']);
$tor_magnet = create_magnet($tor_info['info_hash'], $passkey['auth_key']);
// ratio limits
$min_ratio_dl = $bb_cfg['bt_min_ratio_allow_dl_tor'];