iteration
This commit is contained in:
parent
7585850fa3
commit
c305bcd995
@ -10,6 +10,7 @@ settings.define("auth.server", {
|
|||||||
default = "auth.box"
|
default = "auth.box"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
function get_token()
|
function get_token()
|
||||||
return settings.get("auth.token")
|
return settings.get("auth.token")
|
||||||
end
|
end
|
||||||
@ -21,6 +22,7 @@ function check_user_group(username, group)
|
|||||||
["group"] = group
|
["group"] = group
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local auth_server_id = lns.lookup(settings.get("auth.server"))
|
||||||
rednet.send(auth_server_id, data, "auth")
|
rednet.send(auth_server_id, data, "auth")
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
@ -53,6 +55,7 @@ function list_user_groups(username)
|
|||||||
["username"] = username
|
["username"] = username
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local auth_server_id = lns.lookup(settings.get("auth.server"))
|
||||||
rednet.send(auth_server_id, data, "auth")
|
rednet.send(auth_server_id, data, "auth")
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
@ -82,6 +85,7 @@ function add_user_to_group(username, group)
|
|||||||
["token"] = get_token()
|
["token"] = get_token()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local auth_server_id = lns.lookup(settings.get("auth.server"))
|
||||||
rednet.send(auth_server_id, data, "auth")
|
rednet.send(auth_server_id, data, "auth")
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
|
Loading…
Reference in New Issue
Block a user