mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Added passkey check in get_bt_userdata (#621)
This commit is contained in:
parent
5931fee4da
commit
4e8e181d8c
4 changed files with 13 additions and 18 deletions
|
@ -135,10 +135,7 @@ switch ($field) {
|
|||
$value = sprintf('%.0f', $value);
|
||||
$this->response['new_value'] = humn_size($value, null, null, ' ');
|
||||
|
||||
if (!$btu = get_bt_userdata($user_id)) {
|
||||
\TorrentPier\Legacy\Torrent::generate_passkey($user_id, true);
|
||||
$btu = get_bt_userdata($user_id);
|
||||
}
|
||||
$btu = get_bt_userdata($user_id);
|
||||
$btu[$field] = $value;
|
||||
$this->response['update_ids']['u_ratio'] = (string)get_bt_ratio($btu);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue