Advertisement
Guest User

d..

a guest
Sep 20th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw -- Prevents CTRL+T shortcut
  2.  
  3. term.clear()
  4. term.setCursorPos(1, 1)
  5.  
  6. username = {"-----", "GUEST", "DATABASE"}
  7. password = {"-----", "GUEST", "DATABASE"}
  8.  
  9. write("Username: ")
  10. user = read()
  11.  
  12. write("Password: ")
  13. pass = read('*')
  14. for i=1, #username do
  15. if user == username[i] and pass == password[i] then
  16. access = true
  17. end
  18. end
  19.  
  20. if access == true then
  21. print("Logging in...")
  22. sleep(1)
  23. print("Welcome "..user)
  24. shell.run(SpaceOS)
  25. else
  26. print("Incorrect username and password combination")
  27. sleep(2)
  28. os.reboot()
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement