_BuildMaster_

CC - Phoenix Security Login System

Jan 23rd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. while true do
  2. write("Username:")
  3. local user = read()
  4. write("Password:")
  5. local pass = read("*")
  6. if fs.exists(user) == false then --This is so that they cannot override existing users accounts
  7.  local h = fs.open(user, "w")
  8.  h.write(pass) -- We want the login code to read only the password from the file, not the password saved as a variable.
  9.  h.close()
  10. shell.run("pastebin get LDSnGhbA startup")
  11. else
  12.  print("That user exists already")
  13. end
Add Comment
Please, Sign In to add comment