Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function reset()
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.lightGray)
- print("-- SECURITY TERMINAL A5 --\n")
- term.setTextColor(colors.white)
- end
- while true do
- reset()
- print("Please enter password:")
- input = read("*")
- if input == "xen" then
- reset()
- textutils.slowPrint("Login successful. Welcome Operator Calhoun.\nSigned in personnel:\n")
- textutils.tabulate(
- colors.lightGray, {"USER", "CLEARANCE", "OFFICE", "PASSWORD"},
- colors.white, {"Calhoun", "SEC", "SEC-A5", "xen"},
- colors.white, {"Freeman", "STAFF", "-", "-"},
- colors.white, {"Johnson", "ADMIN", "-", "-"},
- colors.white, {"Kleiner", "STAFF", "-", "-"},
- colors.white, {"Mossman", "ADMIN", "-", "-"},
- colors.white, {"Vance", "STAFF", "-", "-"}
- )
- os.sleep(60)
- reset()
- textutils.slowPrint("SESSION TIMEOUT. Log in again to continue.")
- os.sleep(3)
- else
- textutils.slowPrint("Password incorrect. Please try again.")
- os.sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement