iteration
This commit is contained in:
parent
7a79961839
commit
0f748992a8
@ -77,6 +77,12 @@ while true do
|
|||||||
password = convert_password(request.password)
|
password = convert_password(request.password)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- if only user in database, add to admin group
|
||||||
|
if table.getn(data.users) == 1 then
|
||||||
|
data.users[request.username].groups = {}
|
||||||
|
data.users[request.username].groups["admin"] = true
|
||||||
|
end
|
||||||
|
|
||||||
save_data()
|
save_data()
|
||||||
|
|
||||||
rednet.send(client_id, "ok", "auth")
|
rednet.send(client_id, "ok", "auth")
|
||||||
|
Loading…
Reference in New Issue
Block a user