From e3901499cd606912175c3aea6e6e7212b137ce64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sat, 3 Feb 2024 17:57:41 +0100 Subject: [PATCH] Edit APIs --- lib/account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/account.php b/lib/account.php index 64bb9f2..42c3eb0 100644 --- a/lib/account.php +++ b/lib/account.php @@ -289,7 +289,7 @@ function addActivationCodes($count): array $output = ["Status" => "Fail"]; // Default Status is "Fail" if (is_numeric($count) && $count > 0 && $_SESSION["privilege_level"] >= $routerConfig["user_admin_permission_level"] && isLoggedIn()) { - $stmt = $mysqli->prepare("INSERT INTO Users VALUES ActivationToken = ?, CreatedAt = NOW(), CreatedBy = ?"); + $stmt = $mysqli->prepare("INSERT INTO Users (ActivationToken, CreatedAt, CreatedBy) VALUES (?, NOW(), ?)"); for ($i = 0; $i < $count; $i++) { $activationCode = generateActivationToken();