Fixed broken torrent stats displaying (Part 2) (#1673)

* Fixed broken torrent stats displaying (Part 2)

* Update CHANGELOG.md

* Updated

* Revert "Updated"

This reverts commit e816be32df.

* Updated

* Update mysql.sql

* Update mysql.sql

* Revert "Fixed broken torrent stats displaying (Part 2)"

This reverts commit ce071d9fcf.

* Update Torrent.php

* Reapply "Fixed broken torrent stats displaying (Part 2)"

This reverts commit 3f713b8a45.

* Update register.php

* Updated
This commit is contained in:
Roman Kelesidis 2024-11-09 13:27:37 +07:00 committed by GitHub
commit a50c6601b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 22 additions and 19 deletions

View file

@ -605,6 +605,16 @@ if ($submit && !$errors) {
DB()->query("INSERT INTO " . BB_USERS . $sql_args);
$new_user_id = DB()->sql_nextid();
// Generate passkey
for ($i = 0, $max_try = 3; $i <= $max_try; $i++) {
if (\TorrentPier\Legacy\Torrent::generate_passkey($new_user_id, true)) {
break;
}
if ($i == $max_try) {
bb_simple_die('Could not generate passkey');
}
}
if (IS_ADMIN) {
set_pr_die_append_msg($new_user_id);
$message = $lang['ACCOUNT_ADDED'];