Advertisement
Guest User

auth

a guest
Apr 2nd, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. local pass = "wasd"
  2.  
  3. function clearScreen()
  4.   term.clear()
  5.   term.setCursorPos(1,1)
  6. end
  7.  
  8. clearScreen()
  9. print(os.getComputerLabel() or os.getComputerID())
  10. term.write("Login: ")
  11. user = read()
  12. term.write("Password: ")
  13. if read("*") == pass and user == "Areion" then
  14.   clearScreen()
  15.   shell.run("rom/programs/shell")
  16. else
  17.   print("Username or password incorrect!")
  18.   os.sleep(3)
  19.   clearScreen()
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement