Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2.  
  3. term.clear()
  4. term.setCursorPos(1, 1)
  5.  
  6. username = {"admin", "bdrgbrdgbd", "bdrgrnedn5ern"}
  7. password = {"iwanttodie", "vrrdbgrndbsresb", "enrnetrntreg"}
  8.  
  9. write("Username: ")
  10. user = read()
  11.  
  12. write("Password: ")
  13. pass = read('*')
  14.  
  15. for i=1, #username do
  16. if user == username[i] and pass == password[i] then
  17. access = true
  18. end
  19. end
  20.  
  21. if access == true then
  22. print("Logging in...")
  23. sleep(1)
  24. print("Welcome "..user)
  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