iteration

This commit is contained in:
Layla 2023-10-08 03:21:02 -04:00
parent 41c7bc33a0
commit d147fe682c
2 changed files with 1 additions and 2 deletions

View File

@ -104,7 +104,6 @@ while true do
end
if request.action == "token" then
log("Token request from " .. client_id)
if request.token == nil or request.token == "" or request.token == -1 then
rednet.send(client_id, "invalid request", "auth")
log("Token request from " .. client_id .. " denied (invalid request)")

View File

@ -117,7 +117,7 @@ while true do
["token"] = request.token
}, "auth")
local auth_response = rednet.receive("auth")
authID, auth_response = rednet.receive("auth")
log_debug("Auth response: " .. auth_response)
local errorPos, errorEnd = string.find(auth_response, "invalid")
if errorPos then