iteration

This commit is contained in:
Layla 2023-10-08 03:12:06 -04:00
parent 0fefa83215
commit 0aa280381e

View File

@ -112,7 +112,8 @@ while true do
local found = false
for user, userdata in pairs(data.users) do
if userdata.token == request.token then
rednet.send(client_id, userdata.username, "auth")
log("Token request from " .. client_id .. " granted for " .. user")
rednet.send(client_id, user, "auth")
found = true
end
end