iteration
This commit is contained in:
17
auth.lua
17
auth.lua
@@ -6,7 +6,20 @@ if args[1] == nil then
|
||||
end
|
||||
|
||||
local action = args[1]
|
||||
local server = "auth.layla.mc"
|
||||
|
||||
settings.define("auth.token", {
|
||||
description = "Authentication token",
|
||||
type = "string",
|
||||
default = ""
|
||||
})
|
||||
|
||||
settings.define("auth.server", {
|
||||
description = "Authentication server",
|
||||
type = "string",
|
||||
default = "auth.box"
|
||||
})
|
||||
|
||||
local server = settings.get("auth.server")
|
||||
|
||||
function lns_lookup(hostname)
|
||||
local data = {
|
||||
@@ -65,8 +78,8 @@ if action == "login" then
|
||||
end
|
||||
end
|
||||
|
||||
settings.set("auth.token", token)
|
||||
io.write("Logged in as " .. username .. "\n")
|
||||
io.write("Token: " .. token .. "\n")
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user