Renamed multiple database tables

This commit is contained in:
2026-05-15 23:00:08 +02:00
parent 925348e8fe
commit 5a27c678b1
40 changed files with 267 additions and 256 deletions

View File

@@ -16,22 +16,22 @@ if (isset($_POST['user_uuid'])) {
}
$user_uuid = $_SESSION['user']['user_uuid'];
$sql = "UPDATE vc_users SET user_password = ?,
$sql = "UPDATE system_users SET user_password = ?,
user_password_reset_token = NULL,
user_password_reset_expires = NULL
WHERE user_uuid = ?";
$userSql = "SELECT COUNT(*) FROM vc_users WHERE user_uuid = ?";
$userSql = "SELECT COUNT(*) FROM system_users WHERE user_uuid = ?";
$whereValue = $user_uuid;
} elseif (isset($_POST['user_password_reset_token'])) {
$user_password_reset_token = $_POST['user_password_reset_token'];
$sql = "UPDATE vc_users SET user_password = ?,
$sql = "UPDATE system_users SET user_password = ?,
user_password_reset_token = NULL,
user_password_reset_expires = NULL,
user_verified_email = 1,
user_status = 'active'
WHERE user_password_reset_token = ? AND user_status IN ('active', 'pending')";
$userSql = "SELECT COUNT(*) FROM vc_users WHERE user_password_reset_token = ?";
$userSql = "SELECT COUNT(*) FROM system_users WHERE user_password_reset_token = ?";
$whereValue = $user_password_reset_token;
}