Edit APIs

This commit is contained in:
Bruno Rybársky 2024-02-03 17:57:41 +01:00
parent 1e037cd6a2
commit e3901499cd

@ -289,7 +289,7 @@ function addActivationCodes($count): array
$output = ["Status" => "Fail"]; // Default Status is "Fail" $output = ["Status" => "Fail"]; // Default Status is "Fail"
if (is_numeric($count) && $count > 0 && $_SESSION["privilege_level"] >= $routerConfig["user_admin_permission_level"] && isLoggedIn()) { 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++) { for ($i = 0; $i < $count; $i++) {
$activationCode = generateActivationToken(); $activationCode = generateActivationToken();