fix: billing login fatal error (remove users_pass_hash UPDATE) and clean up DayZ Epoch XML post_install
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/ab0498eb-fc73-47ef-aec4-f20043320401 Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
692c276bc9
commit
51e3bbe16d
2 changed files with 30 additions and 65 deletions
|
|
@ -93,11 +93,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||
}
|
||||
if (!$authOk && !empty($legacyHash)) {
|
||||
$authOk = (md5($password) === $legacyHash);
|
||||
if ($authOk && function_exists('password_hash')) {
|
||||
$newHash = password_hash($password, PASSWORD_DEFAULT);
|
||||
$escapedHash = mysqli_real_escape_string($db, $newHash);
|
||||
mysqli_query($db, "UPDATE {$table_prefix}users SET users_pass_hash = '$escapedHash' WHERE user_id = $userId LIMIT 1");
|
||||
}
|
||||
}
|
||||
if ($authOk) {
|
||||
session_regenerate_id(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue