Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = {...}
- if args[1] == nil then
- error("Usage: user <name>")
- end
- file = fs.open(args[1], "w")
- rand = math.random(1111111111, 9999999999)
- file.write("key:"..rand.."\n")
- file.write("username:"..args[1].."\n")
- write("Password > ")
- input = read("*")
- file.write("password:"..input.."\n")
- file.close()
- fs.move(args[1], "/.users/"..args[1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement