Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- write("Username:")
- local user = read()
- write("Password:")
- local pass = read("*")
- if fs.exists(user) == false then --This is so that they cannot override existing users accounts
- local h = fs.open(user, "w")
- h.write(pass) -- We want the login code to read only the password from the file, not the password saved as a variable.
- h.close()
- shell.run("pastebin get LDSnGhbA startup")
- else
- print("That user exists already")
- end
Add Comment
Please, Sign In to add comment