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:
copilot-swe-agent[bot] 2026-05-03 21:58:13 +00:00 committed by GitHub
parent 692c276bc9
commit 51e3bbe16d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 30 additions and 65 deletions

View file

@ -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);