Edit APIs
This commit is contained in:
parent
1e037cd6a2
commit
e3901499cd
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user