mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Fixed broken torrent stats displaying (Part 2) (#1673)
* Fixed broken torrent stats displaying (Part 2) * Update CHANGELOG.md * Updated * Revert "Updated" This reverts commite816be32df
. * Updated * Update mysql.sql * Update mysql.sql * Revert "Fixed broken torrent stats displaying (Part 2)" This reverts commitce071d9fcf
. * Update Torrent.php * Reapply "Fixed broken torrent stats displaying (Part 2)" This reverts commit3f713b8a45
. * Update register.php * Updated
This commit is contained in:
parent
64409e607d
commit
a50c6601b4
9 changed files with 22 additions and 19 deletions
|
@ -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'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue