From b4d9af64d0a974d6d0286281616d322929830633 Mon Sep 17 00:00:00 2001 From: Layla Manley Date: Sun, 8 Oct 2023 05:03:40 -0400 Subject: [PATCH] iteration --- packages/auth_server.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/auth_server.lua b/packages/auth_server.lua index 352a9b3..dc4d234 100644 --- a/packages/auth_server.lua +++ b/packages/auth_server.lua @@ -78,7 +78,8 @@ while true do } -- if only user in database, add to admin group - if table.getn(data.users) == 2 then + log(table.getn(data.users)) + if table.getn(data.users) == 0 then log("Adding " .. request.username .. " to admin group") data.users[request.username].groups = {} data.users[request.username].groups["admin"] = true