iteration
This commit is contained in:
7
auth.lua
7
auth.lua
@ -84,6 +84,13 @@ if action == "login" then
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if action == "logout" then
|
||||||
|
settings.set("auth.token", "")
|
||||||
|
settings.save()
|
||||||
|
io.write("Logged out\n")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
if action == "register" then
|
if action == "register" then
|
||||||
io.write("Username: ")
|
io.write("Username: ")
|
||||||
local username = io.read()
|
local username = io.read()
|
||||||
|
Reference in New Issue
Block a user