mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Fixed md5()
deprecated in PHP 8.4 (#1561)
* Fixed md5() deprecated for PHP 8.4 * Updated * Update CHANGELOG.md
This commit is contained in:
parent
1577d9c90b
commit
612004c10b
3 changed files with 11 additions and 3 deletions
|
@ -1,5 +1,13 @@
|
||||||
# 📖 Change Log
|
# 📖 Change Log
|
||||||
|
|
||||||
|
## [v2.4.5](https://github.com/torrentpier/torrentpier/tree/v2.4.5) (2024-XX-XX)
|
||||||
|
[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.4...v2.4.5)
|
||||||
|
|
||||||
|
**Merged pull requests:**
|
||||||
|
|
||||||
|
- Release 2.4.5 🦕 ([belomaxorka](https://github.com/belomaxorka))
|
||||||
|
- Fixed `md5()` deprecated in PHP 8.4 [\#1561](https://github.com/torrentpier/torrentpier/pull/1561) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
|
|
||||||
## [v2.4.4](https://github.com/torrentpier/torrentpier/tree/v2.4.4) (2024-07-22)
|
## [v2.4.4](https://github.com/torrentpier/torrentpier/tree/v2.4.4) (2024-07-22)
|
||||||
[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.3...v2.4.4)
|
[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.3...v2.4.4)
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@ $bb_cfg = [];
|
||||||
$bb_cfg['js_ver'] = $bb_cfg['css_ver'] = 1;
|
$bb_cfg['js_ver'] = $bb_cfg['css_ver'] = 1;
|
||||||
|
|
||||||
// Version info
|
// Version info
|
||||||
$bb_cfg['tp_version'] = 'v2.4.4';
|
$bb_cfg['tp_version'] = 'v2.4.5-dev';
|
||||||
$bb_cfg['tp_release_date'] = '22-07-2024';
|
$bb_cfg['tp_release_date'] = 'XX-XX-2024';
|
||||||
$bb_cfg['tp_release_codename'] = 'Cattle';
|
$bb_cfg['tp_release_codename'] = 'Cattle';
|
||||||
|
|
||||||
// Database
|
// Database
|
||||||
|
|
|
@ -788,7 +788,7 @@ class User
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
if (md5(md5($enteredPassword)) === $userdata['user_password']) {
|
if (hash('md5', hash('md5', $enteredPassword)) === $userdata['user_password']) {
|
||||||
// Update old md5 password
|
// Update old md5 password
|
||||||
DB()->query("UPDATE " . BB_USERS . " SET user_password = '" . $this->password_hash($enteredPassword) . "' WHERE user_id = '" . $userdata['user_id'] . "' AND user_password = '" . $userdata['user_password'] . "' LIMIT 1");
|
DB()->query("UPDATE " . BB_USERS . " SET user_password = '" . $this->password_hash($enteredPassword) . "' WHERE user_id = '" . $userdata['user_id'] . "' AND user_password = '" . $userdata['user_password'] . "' LIMIT 1");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue